From b2070dcbdd38268fb1f76abc4e96c662261abf6e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 16 Aug 2011 12:13:48 +0200 Subject: [PATCH] resolutions --- static/js/pandora/ui/item.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/ui/item.js b/static/js/pandora/ui/item.js index 42d281fd..b22907bb 100644 --- a/static/js/pandora/ui/item.js +++ b/static/js/pandora/ui/item.js @@ -219,7 +219,7 @@ pandora.ui.item = function() { } else if (pandora.user.ui.itemView == 'player') { var video = result.data.stream, format = $.support.video.supportedFormat(video.formats); - video.height = video.profiles[0]; + video.height = video.resolutions[0]; video.width = parseInt(video.height * video.aspectRatio / 2) * 2; video.url = video.baseUrl + '/' + video.height + 'p.' + format; pandora.$ui.contentPanel.replaceElement(1, pandora.$ui.player = Ox.VideoPanelPlayer({ @@ -266,9 +266,9 @@ pandora.ui.item = function() { cuts = result.data.cuts || [], format = $.support.video.supportedFormat(video.formats), streams = {}; - video.height = video.profiles[0]; + video.height = video.resolutions[0]; video.width = parseInt(video.height * video.aspectRatio / 2) * 2; - video.profiles.forEach(function(profile) { + video.resolutions.forEach(function(profile) { streams[profile] = video.baseUrl + '/' + profile + 'p.' + format; }); $.each(pandora.site.layers, function(i, layer) {