use ui.videoSubtitles for enableSubtitles

This commit is contained in:
j 2015-05-18 11:51:11 +02:00
parent dd234d9c65
commit 1da7135e38

View file

@ -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