use min resolution

This commit is contained in:
rolux 2013-03-01 11:23:35 +00:00
parent 0dbb327a97
commit 9b744ee8ce
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ pandora.ui.clipPlayer = function() {
partsAndPoints = pandora.getVideoPartsAndPoints(result.data.durations, points);
data[i] = {
parts: partsAndPoints.parts.map(function(i) {
return pandora.getVideoUrl(item, 96, i + 1);
return pandora.getVideoURL(item, Ox.min(pandora.site.video.resolutions), i + 1);
}),
points: partsAndPoints.points
};

View file

@ -106,7 +106,7 @@ pandora.ui.itemClips = function(options) {
poster: '/' + self.options.id + '/' + self.height + 'p' + points[0] + '.jpg',
rewind: true,
video: partsAndPoints.parts.map(function(i) {
return pandora.getVideoUrl(self.options.id, 96, i + 1);
return pandora.getVideoURL(self.options.id, Ox.min(pandora.site.video.resolutions), i + 1);
}),
width: self.width
})

View file

@ -31,7 +31,7 @@ pandora.ui.timeline = function(data) {
layers: data.annotations,
muted: ui.videoMuted,
position: ui.videoPoints[ui.item].position,
resolution: pandora.site.video.resolutions[0],
resolution: Ox.min(pandora.site.video.resolutions),
selected: ui.videoPoints[ui.item].annotation
? ui.item + '/' + ui.videoPoints[ui.item].annotation
: '',