Fix stuck loading spinner on IE

This commit is contained in:
calzoneman 2015-07-01 23:59:21 -07:00
parent c422fa65fc
commit 9db9856a4e
2 changed files with 10 additions and 1 deletions

View File

@ -82,6 +82,12 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
if CLIENT.leader if CLIENT.leader
sendVideoUpdate() sendVideoUpdate()
) )
# Workaround for IE-- even after seeking completes, the loading
# spinner remains.
@player.on('seeked', =>
$('.vjs-waiting').removeClass('vjs-waiting')
)
) )
) )

View File

@ -536,12 +536,15 @@
return sendVideoUpdate(); return sendVideoUpdate();
} }
}); });
return _this.player.on('play', function() { _this.player.on('play', function() {
_this.paused = false; _this.paused = false;
if (CLIENT.leader) { if (CLIENT.leader) {
return sendVideoUpdate(); return sendVideoUpdate();
} }
}); });
return _this.player.on('seeked', function() {
return $('.vjs-waiting').removeClass('vjs-waiting');
});
}); });
}; };
})(this)); })(this));