diff --git a/static/js/player.js b/static/js/player.js index 409f18214..3ed11e83f 100644 --- a/static/js/player.js +++ b/static/js/player.js @@ -47,10 +47,11 @@ pandora.ui.player = function(data) { showUsers: pandora.site.annotations.showUsers, showTimeline: ui.showTimeline, smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg?' + data.modified), - subtitlesDefaultTrack: Ox.getLanguageNameByCode(pandora.site.language), + subtitles: data.subtitles || [], + subtitlesDefaultTrack: data.subtitlesDefaultTrack || Ox.getLanguageNameByCode(pandora.site.language), subtitlesLayer: data.subtitlesLayer, subtitlesOffset: ui.videoSubtitlesOffset, - subtitlesTrack: Ox.getLanguageNameByCode(pandora.site.language), + subtitlesTrack: data.subtitlesTrack || Ox.getLanguageNameByCode(pandora.site.language), timeline: ui.videoTimeline, timelineTooltip: Ox._('timeline') + ' ' + Ox.SYMBOLS.shift + 'T', video: data.video,