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,
|
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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue