allow subtitles without tracks property
This commit is contained in:
parent
4bcb39e758
commit
7d4aee473e
1 changed files with 3 additions and 1 deletions
|
@ -1971,7 +1971,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
self.options.subtitles.map(function(subtitle) {
|
||||
return subtitle.tracks;
|
||||
})
|
||||
)));
|
||||
))).filter(function(track) {
|
||||
return !!track;
|
||||
});
|
||||
loadedsubtitles();
|
||||
} else {
|
||||
if (self.options.subtitles.indexOf('\n') > -1) {
|
||||
|
|
Loading…
Reference in a new issue