fix changing resolution in video editor

This commit is contained in:
j 2013-07-14 19:25:30 +00:00
parent 41f37fee36
commit 77d9cd5e3a

View file

@ -1271,7 +1271,12 @@ Ox.VideoPlayer = function(options, self) {
self.$timeline && self.$timeline.replaceWith( self.$timeline && self.$timeline.replaceWith(
self.$timeline = getTimeline() 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', { that.triggerEvent('durationchange', {
duration: self.options.duration duration: self.options.duration
}); });