From 1da7135e38b4f0832b6fa5dca68d553462d33738 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 18 May 2015 11:51:11 +0200 Subject: [PATCH] use ui.videoSubtitles for enableSubtitles --- static/js/embedPlayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/embedPlayer.js b/static/js/embedPlayer.js index b7b000df..004dc941 100644 --- a/static/js/embedPlayer.js +++ b/static/js/embedPlayer.js @@ -86,7 +86,7 @@ pandora.ui.embedPlayer = function() { enableKeyboard: !isFrame, enableMouse: !isFrame, enablePosition: !isFrame, - enableSubtitles: true, + enableSubtitles: ui.videoSubtitles, enableTimeline: !isFrame, enableVolume: !isFrame, height: options.height, @@ -103,7 +103,7 @@ pandora.ui.embedPlayer = function() { resolution: ui.videoResolution, scaleToFill: ui.videoScale == 'fill', showIconOnLoad: true, - subtitles: ui.videoSubtitles ? video.subtitles : [], + subtitles: video.subtitles, subtitlesOffset: ui.videoSubtitlesOffset, timeline: options.playInToOut ? function(size, i) { return pandora.getMediaURL('/' + options.item