VideoAnnotationPanel: properly handle subtitles track change (fixes #2455)
This commit is contained in:
parent
5aaeda46c5
commit
028f19fd1c
1 changed files with 1 additions and 7 deletions
|
@ -1401,7 +1401,6 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
subtitles,
|
||||
toggleSubtitles = enableSubtitles != self.options.enableSubtitles;
|
||||
self.options.enableSubtitles = enableSubtitles;
|
||||
subtitles = getSubtitles();
|
||||
if (toggleSubtitles) {
|
||||
self.$player.forEach(function($player) {
|
||||
$player.options({
|
||||
|
@ -1414,15 +1413,10 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
} else {
|
||||
self.$player.forEach(function($player) {
|
||||
$player.options({
|
||||
subtitles: subtitles
|
||||
subtitlesTrack: self.options.subtitlesTrack
|
||||
});
|
||||
});
|
||||
}
|
||||
self.$timeline.forEach(function($timeline) {
|
||||
$timeline.options({
|
||||
subtitles: subtitles
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function showKeyboardShortcuts() {
|
||||
|
|
Loading…
Reference in a new issue