From dd234d9c65918366ed2dace18ee2b9b1c8f1a05f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 18 May 2015 11:43:30 +0200 Subject: [PATCH] only enabale subtitles is enabled in ui settings --- static/js/embedPlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/embedPlayer.js b/static/js/embedPlayer.js index 101cc1df2..b7b000df4 100644 --- a/static/js/embedPlayer.js +++ b/static/js/embedPlayer.js @@ -103,7 +103,7 @@ pandora.ui.embedPlayer = function() { resolution: ui.videoResolution, scaleToFill: ui.videoScale == 'fill', showIconOnLoad: true, - subtitles: video.subtitles, + subtitles: ui.videoSubtitles ? video.subtitles : [], subtitlesOffset: ui.videoSubtitlesOffset, timeline: options.playInToOut ? function(size, i) { return pandora.getMediaURL('/' + options.item