no longer seeking on play

This commit is contained in:
j 2013-07-14 15:26:37 +00:00
parent db3ebf7663
commit 155ada7992

View file

@ -239,6 +239,7 @@ Ox.VideoElement = function(options, self) {
if (self.options.loop) {
item = Ox.mod(item, self.numberOfItems);
} else {
self.seeking = false;
self.ended = true;
self.paused = true;
self.video && self.video.pause();
@ -370,10 +371,10 @@ Ox.VideoElement = function(options, self) {
@*/
that.currentTime = function() {
var ret;
self.ended = false;
if (arguments.length == 0) {
ret = getCurrentTime();
} else {
self.ended = false;
setCurrentTime(arguments[0]);
ret = that;
}
@ -422,6 +423,7 @@ Ox.VideoElement = function(options, self) {
}
self.ended = false;
self.paused = false;
self.seeking = false;
self.video.play();
return that;
};