dont start playing if paused and hitting next
This commit is contained in:
parent
f472dfb022
commit
41f37fee36
1 changed files with 9 additions and 0 deletions
|
@ -1696,8 +1696,17 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
if (Ox.isUndefined(next)) {
|
||||
next = direction == 1 ? self.options.duration : 0;
|
||||
if (self.options.loop && next == 0) {
|
||||
next = points.slice(-2)[0];
|
||||
}
|
||||
}
|
||||
if (self.options.loop && next == self.options.duration) {
|
||||
next = 0;
|
||||
}
|
||||
setPosition(next);
|
||||
that.triggerEvent('position', {
|
||||
position: self.options.position
|
||||
});
|
||||
}
|
||||
|
||||
function goToNextResult(direction) {
|
||||
|
|
Loading…
Reference in a new issue