From 115c4563188472b33a61bb56ccfeb7d04f99f492 Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Wed, 15 Jul 2020 16:50:25 +0800 Subject: [PATCH] Video: Stop loading circle when there's an error. --- ui/component/viewers/videoViewer/internal/videojs.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 2ebf3e20b..78954600e 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -21,6 +21,7 @@ export type Player = { currentTime: (?number) => number, ended: () => boolean, error: () => any, + loadingSpinner: any, }; type Props = { @@ -136,6 +137,9 @@ export default React.memo(function VideoJs(props: Props) { function onError() { showTapToUnmute(false); + if (player && player.loadingSpinner) { + player.loadingSpinner.hide(); + } } function onEnded() {