resolutions moved
This commit is contained in:
parent
0e6b51a4bb
commit
b27b28346f
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ pandora.ui.videoPreview = function(data) {
|
||||||
getFrame: function(position) {
|
getFrame: function(position) {
|
||||||
var width = pandora.user.ui.sidebarSize,
|
var width = pandora.user.ui.sidebarSize,
|
||||||
height = Math.round(width / pandora.user.infoRatio),
|
height = Math.round(width / pandora.user.infoRatio),
|
||||||
resolution = Ox.filter(data.video.resolutions, function(resolution, i) {
|
resolution = Ox.filter(pandora.site.resolutions, function(resolution, i) {
|
||||||
return resolution >= height || i == data.video.resolutions.length - 1;
|
return resolution >= height || i == pandora.site.resolutions.length - 1;
|
||||||
})[0];
|
})[0];
|
||||||
return '/' + data.id + '/' + resolution + 'p' + (
|
return '/' + data.id + '/' + resolution + 'p' + (
|
||||||
Ox.isUndefined(position) ? '' : position
|
Ox.isUndefined(position) ? '' : position
|
||||||
|
|
Loading…
Reference in a new issue