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,
|
subtitles,
|
||||||
toggleSubtitles = enableSubtitles != self.options.enableSubtitles;
|
toggleSubtitles = enableSubtitles != self.options.enableSubtitles;
|
||||||
self.options.enableSubtitles = enableSubtitles;
|
self.options.enableSubtitles = enableSubtitles;
|
||||||
subtitles = getSubtitles();
|
|
||||||
if (toggleSubtitles) {
|
if (toggleSubtitles) {
|
||||||
self.$player.forEach(function($player) {
|
self.$player.forEach(function($player) {
|
||||||
$player.options({
|
$player.options({
|
||||||
|
@ -1414,15 +1413,10 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
||||||
} else {
|
} else {
|
||||||
self.$player.forEach(function($player) {
|
self.$player.forEach(function($player) {
|
||||||
$player.options({
|
$player.options({
|
||||||
subtitles: subtitles
|
subtitlesTrack: self.options.subtitlesTrack
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
self.$timeline.forEach(function($timeline) {
|
|
||||||
$timeline.options({
|
|
||||||
subtitles: subtitles
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showKeyboardShortcuts() {
|
function showKeyboardShortcuts() {
|
||||||
|
|
Loading…
Reference in a new issue