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) {