fix a bug where after playing in to out, the video position would be set to the very end of the video
This commit is contained in:
parent
abbfe33458
commit
b3ed2db267
1 changed files with 1 additions and 1 deletions
|
@ -1559,12 +1559,12 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
self.$video.playNext();
|
self.$video.playNext();
|
||||||
} else {
|
} else {
|
||||||
togglePaused();
|
togglePaused();
|
||||||
self.playInToOut = false;
|
|
||||||
if (self.options.rewind) {
|
if (self.options.rewind) {
|
||||||
rewind();
|
rewind();
|
||||||
} else {
|
} else {
|
||||||
setPosition(self.playInToOut ? self.options.out : self.out/*, 'video'*/);
|
setPosition(self.playInToOut ? self.options.out : self.out/*, 'video'*/);
|
||||||
}
|
}
|
||||||
|
self.playInToOut = false;
|
||||||
//ended();
|
//ended();
|
||||||
that.triggerEvent('ended');
|
that.triggerEvent('ended');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue