diff --git a/source/UI/js/Video/VideoEditPanel.js b/source/UI/js/Video/VideoEditPanel.js index ed458fd1..fc4ea93b 100644 --- a/source/UI/js/Video/VideoEditPanel.js +++ b/source/UI/js/Video/VideoEditPanel.js @@ -300,6 +300,16 @@ Ox.VideoEditPanel = function(options, self) { }); that.triggerEvent('subtitles', data); }, + subtitlestrack: function(data) { + var enableSubtitles = !!data.track; + if (enableSubtitles != self.options.enableSubtitles) { + self.options.enableSubtitles = enableSubtitles; + that.triggerEvent('subtitles', {subtitles: enableSubtitles}); + } + self.$timeline.options({ + subtitles: enableSubtitles ? self.options.subtitles : [] + }); + }, volume: function(data) { that.triggerEvent('volume', data); }