From 3428ab1fe9564bcf27fcba0ae7e38a88ea84e8fb Mon Sep 17 00:00:00 2001 From: j Date: Sat, 19 Nov 2016 13:55:19 +0200 Subject: [PATCH] fix video playback in clip list, fixes #2978 --- static/js/clipList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/clipList.js b/static/js/clipList.js index 1d3543406..578794cf5 100644 --- a/static/js/clipList.js +++ b/static/js/clipList.js @@ -210,7 +210,7 @@ pandora.ui.clipList = function(videoRatio) { width = fixedRatio > 1 ? size : Math.round(size * fixedRatio); height = fixedRatio > 1 ? Math.round(size / fixedRatio) : size; } - pandora.api.get({id: item, keys: ['durations', 'rightslevel']}, function(result) { + pandora.api.get({id: item, keys: ['durations', 'rightslevel', 'streams']}, function(result) { var points = [that.value(id, 'in'), that.value(id, 'out')], $player = Ox.VideoPlayer({ censored: pandora.site.capabilities.canPlayClips[pandora.user.level] < result.data.rightslevel @@ -228,6 +228,7 @@ pandora.ui.clipList = function(videoRatio) { item: item, parts: result.data.durations.length, durations: result.data.durations, + streams: result.data.streams, 'in': points[0], out: points[1] }, Ox.min(pandora.site.video.resolutions)),