use ui.videoSubtitles for enableSubtitles
This commit is contained in:
parent
dd234d9c65
commit
1da7135e38
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ pandora.ui.embedPlayer = function() {
|
||||||
enableKeyboard: !isFrame,
|
enableKeyboard: !isFrame,
|
||||||
enableMouse: !isFrame,
|
enableMouse: !isFrame,
|
||||||
enablePosition: !isFrame,
|
enablePosition: !isFrame,
|
||||||
enableSubtitles: true,
|
enableSubtitles: ui.videoSubtitles,
|
||||||
enableTimeline: !isFrame,
|
enableTimeline: !isFrame,
|
||||||
enableVolume: !isFrame,
|
enableVolume: !isFrame,
|
||||||
height: options.height,
|
height: options.height,
|
||||||
|
@ -103,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: ui.videoSubtitles ? video.subtitles : [],
|
subtitles: video.subtitles,
|
||||||
subtitlesOffset: ui.videoSubtitlesOffset,
|
subtitlesOffset: ui.videoSubtitlesOffset,
|
||||||
timeline: options.playInToOut ? function(size, i) {
|
timeline: options.playInToOut ? function(size, i) {
|
||||||
return pandora.getMediaURL('/' + options.item
|
return pandora.getMediaURL('/' + options.item
|
||||||
|
|
Loading…
Reference in a new issue