From 575712a5c970ea1edeb6b44a35a095fc08193a3d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Jun 2018 08:57:52 +0200 Subject: Fix HTTP fallback when having videostream issues on firefox --- client/src/assets/player/video-renderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/assets/player') 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 function useVideostream () { prepareElem() - preparedElem.addEventListener('error', function onError () { + preparedElem.addEventListener('error', function onError (err) { preparedElem.removeEventListener('error', onError) - return fallbackToMediaSource() + return callback(err) }) preparedElem.addEventListener('loadstart', onLoadStart) return videostream(file, preparedElem) -- cgit v1.2.3