From a0213cff3e2c789ce504ec845d3e137611c55a68 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 14 Dec 2014 13:40:57 +0100 Subject: [PATCH] include subtitles in embed player again, fixes #2589 --- static/js/embedPlayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/embedPlayer.js b/static/js/embedPlayer.js index 5c2aba9c4..aa171f5c8 100644 --- a/static/js/embedPlayer.js +++ b/static/js/embedPlayer.js @@ -40,6 +40,7 @@ pandora.ui.embedPlayer = function() { sizes = getSizes(); options.height = sizes.videoHeight; + video.subtitles = getSubtitles(video); if (options.title) { $title = Ox.Element() @@ -102,7 +103,7 @@ pandora.ui.embedPlayer = function() { resolution: ui.videoResolution, scaleToFill: ui.videoScale == 'fill', showIconOnLoad: true, - subtitles: getSubtitles(options), + subtitles: video.subtitles, timeline: options.playInToOut ? function(size, i) { return pandora.getMediaURL('/' + options.item + '/timelineantialias'