forked from 0x2620/oxjs
video widgets: add support for multiple audio and subtitles tracks (first pass)
This commit is contained in:
parent
7d7620601c
commit
00e6367ca9
5 changed files with 248 additions and 236 deletions
|
|
@ -78,6 +78,8 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
crossesPoint() && updateAnnotations();
|
||||
self.position = self.options.position;
|
||||
}
|
||||
} else if (key == 'languages') {
|
||||
updateAnnotations();
|
||||
} else if (key == 'range') {
|
||||
updateAnnotations();
|
||||
self.$annotations.options({placeholder: getPlaceholder()});
|
||||
|
|
@ -416,7 +418,9 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
)
|
||||
) && (
|
||||
self.options.languages == 'all'
|
||||
|| self.options.languages.indexOf(item.language) > -1
|
||||
|| self.options.languages.some(function(language) {
|
||||
return item.languages.indexOf(language) > -1;
|
||||
})
|
||||
) && (
|
||||
self.options.users == 'all'
|
||||
|| self.options.users.indexOf(item.user) > -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue