aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-25 12:06:34 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-25 12:06:34 +0200
commit3d396c2a11784a755fa96bb5031250c5d3d52e9e (patch)
tree0a28850259eb76d035c93b8ac4633be1c7779c8a /components
parentda26ec8a8cec5406850a2529b861201148592835 (diff)
mostly working?
Diffstat (limited to 'components')
-rw-r--r--components/videosourcesettings.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/videosourcesettings.tsx b/components/videosourcesettings.tsx
index 35e180c..345aea1 100644
--- a/components/videosourcesettings.tsx
+++ b/components/videosourcesettings.tsx
@@ -33,7 +33,8 @@ export function LocalVideoSettings(props: VideoSourceSettings) {
var reader = new FileReader();
reader.addEventListener('load', ev => {
var video = ev.target.result as ArrayBuffer;
- props.settings.load(video);
+ props.settings.source = video;
+ props.settings.getVideoInfo();
props.settings.mimetype = file.type;
props.player.loadVideo(arrayBufferToBase64(video, file.type));
props.global.update.refreshLiveTimeline.value();