From 41f37fee361b6ae786d067bde499420f241cc6a2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Jul 2013 19:15:56 +0000 Subject: [PATCH] dont start playing if paused and hitting next --- source/Ox.UI/js/Video/VideoPlayer.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index cfbc46a1..135d30df 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -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) {