diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index a586ccda..6bfb5dcd 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -997,6 +997,11 @@ Ox.VideoEditor = function(options, self) { function togglePaused() { self.$player[0].togglePaused(); + /* fixme + self.$player[0].options('paused') && that.triggerEvent('position', { + + }); + */ } function toggleSize() { diff --git a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js index 758eb507..a15d7caf 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js @@ -163,6 +163,7 @@ Ox.VideoPanelPlayer = function(options, self) { function changeTimeline(data) { self.options.position = data.position; self.$video.options({position: self.options.position}); + that.triggerEvent('position', {position: self.options.position}); } function getPlayerHeight() { @@ -252,7 +253,12 @@ Ox.VideoPanelPlayer = function(options, self) { height: getPlayerHeight() }); } else if (key == 'position') { - self.$video.position(value); + self.$video.options({ + position: value + }); + self.$timeline.options({ + position: value + }); } else if (key == 'width') { self.$video.options({ width: getPlayerWidth()