Fix stuck loading spinner on IE
This commit is contained in:
parent
c422fa65fc
commit
9db9856a4e
|
@ -82,6 +82,12 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
|
|||
if CLIENT.leader
|
||||
sendVideoUpdate()
|
||||
)
|
||||
|
||||
# Workaround for IE-- even after seeking completes, the loading
|
||||
# spinner remains.
|
||||
@player.on('seeked', =>
|
||||
$('.vjs-waiting').removeClass('vjs-waiting')
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -536,12 +536,15 @@
|
|||
return sendVideoUpdate();
|
||||
}
|
||||
});
|
||||
return _this.player.on('play', function() {
|
||||
_this.player.on('play', function() {
|
||||
_this.paused = false;
|
||||
if (CLIENT.leader) {
|
||||
return sendVideoUpdate();
|
||||
}
|
||||
});
|
||||
return _this.player.on('seeked', function() {
|
||||
return $('.vjs-waiting').removeClass('vjs-waiting');
|
||||
});
|
||||
});
|
||||
};
|
||||
})(this));
|
||||
|
|
Loading…
Reference in a new issue