From 9b744ee8ced184f012a72173ab652881b3048e1e Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 1 Mar 2013 11:23:35 +0000 Subject: [PATCH] use min resolution --- static/js/pandora/clipPlayer.js | 2 +- static/js/pandora/itemClips.js | 2 +- static/js/pandora/timeline.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/clipPlayer.js b/static/js/pandora/clipPlayer.js index 10861fc7..72390e0f 100644 --- a/static/js/pandora/clipPlayer.js +++ b/static/js/pandora/clipPlayer.js @@ -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 }; diff --git a/static/js/pandora/itemClips.js b/static/js/pandora/itemClips.js index 43e41f04..2620dbed 100644 --- a/static/js/pandora/itemClips.js +++ b/static/js/pandora/itemClips.js @@ -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 }) diff --git a/static/js/pandora/timeline.js b/static/js/pandora/timeline.js index 9f8d7892..fbc9329c 100644 --- a/static/js/pandora/timeline.js +++ b/static/js/pandora/timeline.js @@ -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 : '',