support audio and subtitle tracks (multiple languages etc), first round

This commit is contained in:
rolux 2014-07-23 15:55:09 +02:00
commit 07fdb094dd
5 changed files with 328 additions and 124 deletions

View file

@ -43,6 +43,7 @@ Ox.AnnotationFolder = function(options, self) {
item: '',
items: [],
keyboard: '',
languages: 'all',
out: 0,
position: 0,
range: 'all',
@ -413,6 +414,9 @@ Ox.AnnotationFolder = function(options, self) {
&& item['in'] <= self.options.position
&& item.out >= self.options.position
)
) && (
self.options.languages == 'all'
|| self.options.languages.indexOf(item.language) > -1
) && (
self.options.users == 'all'
|| self.options.users.indexOf(item.user) > -1