fix subtitle toggle in edit panel too
This commit is contained in:
parent
ab21bdbe25
commit
cb875c86df
1 changed files with 10 additions and 0 deletions
|
@ -300,6 +300,16 @@ Ox.VideoEditPanel = function(options, self) {
|
||||||
});
|
});
|
||||||
that.triggerEvent('subtitles', data);
|
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) {
|
volume: function(data) {
|
||||||
that.triggerEvent('volume', data);
|
that.triggerEvent('volume', data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue