fix video playback in clip list, fixes #2978
This commit is contained in:
parent
ff4e000954
commit
3428ab1fe9
1 changed files with 2 additions and 1 deletions
|
@ -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)),
|
||||||
|
|
Loading…
Reference in a new issue