Compare commits

..

2 commits

Author SHA1 Message Date
j
e3e5e3b9e5 also load localInit in embed view 2022-01-21 17:39:08 +00:00
j
5505d495cf use same subtitle defaults for embedded player 2022-01-21 17:32:24 +00:00
2 changed files with 7 additions and 1 deletions

View file

@ -42,7 +42,9 @@ pandora.ui.embedPlayer = function() {
sizes = getSizes();
options.height = sizes.videoHeight;
if (!video.subtitles) {
video.subtitles = pandora.getSubtitles(video);
}
if (options.title) {
$title = Ox.Element()
@ -107,7 +109,10 @@ pandora.ui.embedPlayer = function() {
scaleToFill: ui.videoScale == 'fill',
showIconOnLoad: true,
subtitles: video.subtitles,
subtitlesDefaultTrack: video.subtitlesDefaultTrack || Ox.getLanguageNameByCode(pandora.site.language),
subtitlesLayer: video.subtitlesLayer,
subtitlesOffset: ui.videoSubtitlesOffset,
subtitlesTrack: video.subtitlesTrack || Ox.getLanguageNameByCode(pandora.site.language),
timeline: options.playInToOut ? function(size, i) {
return pandora.getMediaURL('/' + options.item
+ '/timelineantialias'

View file

@ -495,6 +495,7 @@ appPanel
pandora.$ui.embedPanel.options(data);
}
});
pandora.localInit && pandora.localInit();
} else if (isPrint) {
pandora.$ui.printView = pandora.ui.printView().display();
} else if (isHome) {