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(); 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');
} }