Video: Stop loading circle when there's an error.
This commit is contained in:
parent
5e51016602
commit
115c456318
1 changed files with 4 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue