From 77d9cd5e3a0e584beb532d3414ca812488fd0845 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Jul 2013 19:25:30 +0000 Subject: [PATCH] fix changing resolution in video editor --- source/Ox.UI/js/Video/VideoPlayer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index 135d30df..ede2f481 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -1271,7 +1271,12 @@ Ox.VideoPlayer = function(options, self) { self.$timeline && self.$timeline.replaceWith( self.$timeline = getTimeline() ); - setPosition(self.$video.currentTime()); + if(self.loadedMetadata) { + setPosition(self.$video.currentTime()); + } else { + self.loadedMetadata = true; + setPosition(self.options.position); + } that.triggerEvent('durationchange', { duration: self.options.duration });