fix video playback in clip list, fixes #2978

This commit is contained in:
j 2016-11-19 13:55:19 +02:00
parent ff4e000954
commit 3428ab1fe9

View file

@ -210,7 +210,7 @@ pandora.ui.clipList = function(videoRatio) {
width = fixedRatio > 1 ? size : Math.round(size * fixedRatio); width = fixedRatio > 1 ? size : Math.round(size * fixedRatio);
height = fixedRatio > 1 ? Math.round(size / fixedRatio) : size; 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')], var points = [that.value(id, 'in'), that.value(id, 'out')],
$player = Ox.VideoPlayer({ $player = Ox.VideoPlayer({
censored: pandora.site.capabilities.canPlayClips[pandora.user.level] < result.data.rightslevel censored: pandora.site.capabilities.canPlayClips[pandora.user.level] < result.data.rightslevel
@ -228,6 +228,7 @@ pandora.ui.clipList = function(videoRatio) {
item: item, item: item,
parts: result.data.durations.length, parts: result.data.durations.length,
durations: result.data.durations, durations: result.data.durations,
streams: result.data.streams,
'in': points[0], 'in': points[0],
out: points[1] out: points[1]
}, Ox.min(pandora.site.video.resolutions)), }, Ox.min(pandora.site.video.resolutions)),