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