pass subtitles to player too

This commit is contained in:
j 2021-06-03 17:32:01 +01:00
parent 098811d383
commit 47e4f1cd84

View file

@ -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') + ' <span class="OxBright">' + Ox.SYMBOLS.shift + 'T</span>',
video: data.video,