Video: Stop loading circle when there's an error.

This commit is contained in:
infiinte-persistence 2020-07-15 16:50:25 +08:00 committed by Sean Yesmunt
parent 5e51016602
commit 115c456318

View file

@ -21,6 +21,7 @@ export type Player = {
currentTime: (?number) => number, currentTime: (?number) => number,
ended: () => boolean, ended: () => boolean,
error: () => any, error: () => any,
loadingSpinner: any,
}; };
type Props = { type Props = {
@ -136,6 +137,9 @@ export default React.memo<Props>(function VideoJs(props: Props) {
function onError() { function onError() {
showTapToUnmute(false); showTapToUnmute(false);
if (player && player.loadingSpinner) {
player.loadingSpinner.hide();
}
} }
function onEnded() { function onEnded() {