more seeking issues
This commit is contained in:
parent
d136d4b303
commit
4544efc02c
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue