diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-06 10:01:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-06 10:01:46 +0100 |
commit | 0f56c6e5ff86158f6715d8b7ebc416b1fc0eca70 (patch) | |
tree | 98b55ef3c037ea5b83f3ea92403c5ebf9b2e8692 /client/src/assets/player/video-renderer.ts | |
parent | 635a5686e3227be55dc7e08743651bf6e72e1d37 (diff) | |
download | PeerTube-0f56c6e5ff86158f6715d8b7ebc416b1fc0eca70.tar.gz PeerTube-0f56c6e5ff86158f6715d8b7ebc416b1fc0eca70.tar.zst PeerTube-0f56c6e5ff86158f6715d8b7ebc416b1fc0eca70.zip |
Make it works on iOS
Diffstat (limited to 'client/src/assets/player/video-renderer.ts')
-rw-r--r-- | client/src/assets/player/video-renderer.ts | 12 |
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 () { |