diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-20 08:57:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-20 08:57:52 +0200 |
commit | 575712a5c970ea1edeb6b44a35a095fc08193a3d (patch) | |
tree | bc19ed8f75667ae31a7858d786123d9391ec1cb6 /client/src/assets/player | |
parent | 9c2e0dbfa9098675390e00ccb0fa49c51b3c6732 (diff) | |
download | PeerTube-575712a5c970ea1edeb6b44a35a095fc08193a3d.tar.gz PeerTube-575712a5c970ea1edeb6b44a35a095fc08193a3d.tar.zst PeerTube-575712a5c970ea1edeb6b44a35a095fc08193a3d.zip |
Fix HTTP fallback when having videostream issues on firefox
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/video-renderer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/video-renderer.ts b/client/src/assets/player/video-renderer.ts index 4affb43cf..2cb05a448 100644 --- a/client/src/assets/player/video-renderer.ts +++ b/client/src/assets/player/video-renderer.ts | |||
@@ -45,10 +45,10 @@ function renderMedia (file, elem: HTMLVideoElement, opts: RenderMediaOptions, ca | |||
45 | 45 | ||
46 | function useVideostream () { | 46 | function useVideostream () { |
47 | prepareElem() | 47 | prepareElem() |
48 | preparedElem.addEventListener('error', function onError () { | 48 | preparedElem.addEventListener('error', function onError (err) { |
49 | preparedElem.removeEventListener('error', onError) | 49 | preparedElem.removeEventListener('error', onError) |
50 | 50 | ||
51 | return fallbackToMediaSource() | 51 | return callback(err) |
52 | }) | 52 | }) |
53 | preparedElem.addEventListener('loadstart', onLoadStart) | 53 | preparedElem.addEventListener('loadstart', onLoadStart) |
54 | return videostream(file, preparedElem) | 54 | return videostream(file, preparedElem) |