forked from 0x2620/pandora
use site language as audioTrack if possible
This commit is contained in:
parent
afae94a1be
commit
2cb1873e51
1 changed files with 5 additions and 1 deletions
|
@ -1805,7 +1805,11 @@ pandora.getVideoOptions = function(data) {
|
|||
});
|
||||
}
|
||||
});
|
||||
options.audioTrack = data.audioTracks ? Ox.getLanguageNameByCode(data.audioTracks[0]) : void 0;
|
||||
options.audioTrack = data.audioTracks ? Ox.getLanguageNameByCode(
|
||||
Ox.contains(data.audioTracks, pandora.site.language)
|
||||
? pandora.site.language
|
||||
: data.audioTracks[0]
|
||||
) : void 0;
|
||||
options.annotations = [];
|
||||
pandora.site.layers.forEach(function(layer, i) {
|
||||
options.annotations[i] = Ox.extend({}, layer, {
|
||||
|
|
Loading…
Reference in a new issue