diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index 0df41d0a..44429ada 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -1140,7 +1140,7 @@ Ox.VideoEditor = function(options, self) { }); if (!playing || minute != previousMinute) { that.triggerEvent('position', { - position: self.options.position + position: !playing ? self.options.position : minute * 60 }); } } diff --git a/source/Ox.UI/js/Video/Ox.VideoPanel.js b/source/Ox.UI/js/Video/Ox.VideoPanel.js index 054b7ebf..1d6fb0b7 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPanel.js +++ b/source/Ox.UI/js/Video/Ox.VideoPanel.js @@ -368,14 +368,16 @@ Ox.VideoPanel = function(options, self) { } function setPosition(position, playing) { - var minute = minute = parseInt(position / 60), + var minute = parseInt(position / 60), previousMinute = parseInt(self.options.position / 60); self.options.position = position; !playing && self.$video.options({position: self.options.position}); self.$timeline.options({position: self.options.position}); self.$annotationPanel.options({position: self.options.position}); if (!playing || minute != previousMinute) { - that.triggerEvent('position', {position: self.options.position}); + that.triggerEvent('position', { + position: !playing ? self.options.position : minute * 60 + }); } }