no longer seeking on play
This commit is contained in:
parent
db3ebf7663
commit
155ada7992
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue