more seeking issues

This commit is contained in:
j 2017-12-30 16:50:17 +01:00
parent d136d4b303
commit 4544efc02c

View file

@ -408,11 +408,14 @@ Ox.VideoElement = function(options, self) {
'delta', currentTime - self.video.currentTime); 'delta', currentTime - self.video.currentTime);
isReady(self.$video, function(video) { isReady(self.$video, function(video) {
if (self.video == video) { if (self.video == video) {
if(self.seeking) { if(self.video.seeking) {
self.$video.one('seeked', function() { self.$video.one('seeked', function() {
that.triggerEvent('seeked'); that.triggerEvent('seeked');
self.seeking = false; self.seeking = false;
}); });
} else if (self.seeking) {
that.triggerEvent('seeked');
self.seeking = false;
} }
video.currentTime = currentTime; video.currentTime = currentTime;
} }