pass audioTrack, expand languages before passing
This commit is contained in:
parent
32719a212c
commit
afae94a1be
3 changed files with 14 additions and 17 deletions
|
|
@ -14,7 +14,7 @@ pandora.ui.player = function(data) {
|
|||
annotationsSort: ui.annotationsSort,
|
||||
annotationsTooltip: Ox._('annotations')
|
||||
+ ' <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'A</span>',
|
||||
audioTrack: data.audioTracks ? data.audioTracks[0] : void 0,
|
||||
audioTrack: data.audioTrack,
|
||||
censored: data.censored,
|
||||
censoredIcon: pandora.site.cantPlay.icon,
|
||||
censoredTooltip: Ox._(pandora.site.cantPlay.text),
|
||||
|
|
@ -49,8 +49,9 @@ pandora.ui.player = function(data) {
|
|||
showUsers: pandora.site.annotations.showUsers,
|
||||
showTimeline: ui.showTimeline,
|
||||
smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg'),
|
||||
subtitles: data.subtitles,
|
||||
subtitlesDefaultTrack: pandora.site.language,
|
||||
subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||
subtitlesLayer: data.subtitlesLayer,
|
||||
subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language),
|
||||
timeline: ui.videoTimeline,
|
||||
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'T</span>',
|
||||
video: data.video,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue