video annotations panel: only show selected subtitles track on timelines
This commit is contained in:
parent
916c194301
commit
13a339d924
1 changed files with 6 additions and 3 deletions
|
@ -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()});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue