dont seek again if already seeking

This commit is contained in:
j 2017-12-31 15:16:24 +01:00
parent de5f82045b
commit 43393af132

View file

@ -215,9 +215,11 @@ Ox.VideoElement = function(options, self) {
function isReady($video, callback) {
if ($video[0].seeking && !self.paused) {
if ($video[0].seeking && !self.paused && !self.seeking) {
that.triggerEvent('seeking');
Ox.Log('Video', 'isReady', 'seeking');
$video.one('seeked', function(event) {
Ox.Log('Video', 'isReady', 'seeked');
that.triggerEvent('seeked');
callback($video[0]);
});