resolutions moved

This commit is contained in:
j 2011-08-18 21:08:50 +02:00
parent 0e6b51a4bb
commit b27b28346f
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ pandora.ui.videoPreview = function(data) {
getFrame: function(position) {
var width = pandora.user.ui.sidebarSize,
height = Math.round(width / pandora.user.infoRatio),
resolution = Ox.filter(data.video.resolutions, function(resolution, i) {
return resolution >= height || i == data.video.resolutions.length - 1;
resolution = Ox.filter(pandora.site.resolutions, function(resolution, i) {
return resolution >= height || i == pandora.site.resolutions.length - 1;
})[0];
return '/' + data.id + '/' + resolution + 'p' + (
Ox.isUndefined(position) ? '' : position