include subtitles in embed player again, fixes #2589
This commit is contained in:
parent
cfa89206fe
commit
a0213cff3e
1 changed files with 2 additions and 1 deletions
|
@ -40,6 +40,7 @@ pandora.ui.embedPlayer = function() {
|
||||||
sizes = getSizes();
|
sizes = getSizes();
|
||||||
|
|
||||||
options.height = sizes.videoHeight;
|
options.height = sizes.videoHeight;
|
||||||
|
video.subtitles = getSubtitles(video);
|
||||||
|
|
||||||
if (options.title) {
|
if (options.title) {
|
||||||
$title = Ox.Element()
|
$title = Ox.Element()
|
||||||
|
@ -102,7 +103,7 @@ pandora.ui.embedPlayer = function() {
|
||||||
resolution: ui.videoResolution,
|
resolution: ui.videoResolution,
|
||||||
scaleToFill: ui.videoScale == 'fill',
|
scaleToFill: ui.videoScale == 'fill',
|
||||||
showIconOnLoad: true,
|
showIconOnLoad: true,
|
||||||
subtitles: getSubtitles(options),
|
subtitles: video.subtitles,
|
||||||
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