pass default subtitle language to player and editor

This commit is contained in:
rolux 2014-07-23 15:53:37 +02:00
parent 68ead8a2af
commit 18d5d15293
2 changed files with 2 additions and 0 deletions

View file

@ -60,6 +60,7 @@ pandora.ui.editor = function(data) {
showLayers: Ox.clone(ui.showLayers),
showUsers: pandora.site.annotations.showUsers,
subtitles: data.subtitles,
subtitlesDefaultTrack: pandora.site.language,
subtitlesLayer: data.subtitlesLayer,
timeline: ui.videoTimeline,
timelines: pandora.site.timelines,

View file

@ -49,6 +49,7 @@ pandora.ui.player = function(data) {
showTimeline: ui.showTimeline,
smallTimelineURL: pandora.getMediaURL('/' + ui.item + '/timeline16p.jpg'),
subtitles: data.subtitles,
subtitlesDefaultTrack: pandora.site.language,
timeline: ui.videoTimeline,
timelineTooltip: Ox._('timeline') + ' <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'T</span>',
video: data.video,