aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/video-renderer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/video-renderer.ts')
-rw-r--r--client/src/assets/player/video-renderer.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/src/assets/player/video-renderer.ts b/client/src/assets/player/video-renderer.ts
index 174676ffa..e3415abd3 100644
--- a/client/src/assets/player/video-renderer.ts
+++ b/client/src/assets/player/video-renderer.ts
@@ -33,10 +33,14 @@ function renderMedia (file, elem: HTMLVideoElement, opts: RenderMediaOptions, ca
33 let currentTime = 0 33 let currentTime = 0
34 let renderer 34 let renderer
35 35
36 if (VIDEOSTREAM_EXTS.indexOf(extension) >= 0) { 36 try {
37 renderer = useVideostream() 37 if (VIDEOSTREAM_EXTS.indexOf(extension) >= 0) {
38 } else { 38 renderer = useVideostream()
39 renderer = useMediaSource() 39 } else {
40 renderer = useMediaSource()
41 }
42 } catch (err) {
43 return callback(err)
40 } 44 }
41 45
42 function useVideostream () { 46 function useVideostream () {