forked from 0x2620/pandora
use same subtitle defaults for embedded player
This commit is contained in:
parent
af65750363
commit
5505d495cf
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,9 @@ pandora.ui.embedPlayer = function() {
|
||||||
sizes = getSizes();
|
sizes = getSizes();
|
||||||
|
|
||||||
options.height = sizes.videoHeight;
|
options.height = sizes.videoHeight;
|
||||||
video.subtitles = pandora.getSubtitles(video);
|
if (!video.subtitles) {
|
||||||
|
video.subtitles = pandora.getSubtitles(video);
|
||||||
|
}
|
||||||
|
|
||||||
if (options.title) {
|
if (options.title) {
|
||||||
$title = Ox.Element()
|
$title = Ox.Element()
|
||||||
|
@ -107,7 +109,10 @@ pandora.ui.embedPlayer = function() {
|
||||||
scaleToFill: ui.videoScale == 'fill',
|
scaleToFill: ui.videoScale == 'fill',
|
||||||
showIconOnLoad: true,
|
showIconOnLoad: true,
|
||||||
subtitles: video.subtitles,
|
subtitles: video.subtitles,
|
||||||
|
subtitlesDefaultTrack: video.subtitlesDefaultTrack || Ox.getLanguageNameByCode(pandora.site.language),
|
||||||
|
subtitlesLayer: video.subtitlesLayer,
|
||||||
subtitlesOffset: ui.videoSubtitlesOffset,
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||||
|
subtitlesTrack: video.subtitlesTrack || Ox.getLanguageNameByCode(pandora.site.language),
|
||||||
timeline: options.playInToOut ? function(size, i) {
|
timeline: options.playInToOut ? function(size, i) {
|
||||||
return pandora.getMediaURL('/' + options.item
|
return pandora.getMediaURL('/' + options.item
|
||||||
+ '/timelineantialias'
|
+ '/timelineantialias'
|
||||||
|
|
Loading…
Reference in a new issue