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:
rlx 2011-10-19 12:01:45 +00:00
parent abbfe33458
commit b3ed2db267

View file

@ -1559,12 +1559,12 @@ Ox.VideoPlayer = function(options, self) {
self.$video.playNext();
} else {
togglePaused();
self.playInToOut = false;
if (self.options.rewind) {
rewind();
} else {
setPosition(self.playInToOut ? self.options.out : self.out/*, 'video'*/);
}
self.playInToOut = false;
//ended();
that.triggerEvent('ended');
}