diff --git a/source/Ox.UI/js/Video/VideoAnnotationPanel.js b/source/Ox.UI/js/Video/VideoAnnotationPanel.js index 7e7836d7..db5f6070 100644 --- a/source/Ox.UI/js/Video/VideoAnnotationPanel.js +++ b/source/Ox.UI/js/Video/VideoAnnotationPanel.js @@ -470,7 +470,7 @@ Ox.VideoAnnotationPanel = function(options, self) { //matches: self.options.matches, out: self.options.out, position: self.options.position, - subtitles: self.options.enableSubtitles ? Ox.clone(self.options.subtitles, true) : [], + subtitles: getSubtitles(), type: self.options.timeline, width: self.sizes.timeline[0].width }) @@ -500,7 +500,7 @@ Ox.VideoAnnotationPanel = function(options, self) { results: find(self.options.find), showPointMarkers: true, state: self.options.selected ? 'selected' : 'default', - subtitles: self.options.enableSubtitles ? Ox.clone(self.options.subtitles, true) : [], + subtitles: getSubtitles(), type: self.options.timeline, videoId: self.options.videoId, width: self.sizes.timeline[1].width @@ -1418,6 +1418,9 @@ Ox.VideoAnnotationPanel = function(options, self) { }); }); } + self.$timeline.forEach(function($timeline) { + $timeline.options({subtitles: getSubtitles()}); + }); } function showKeyboardShortcuts() { @@ -1569,7 +1572,7 @@ Ox.VideoAnnotationPanel = function(options, self) { }); if (self.options.enableSubtitles) { self.$timeline.forEach(function($timeline) { - $timeline.options({subtitles: Ox.clone(self.options.subtitles, true)}); + $timeline.options({subtitles: getSubtitles()}); }); } }