From 8368e9cbdf8a063f6aaac64e6ef18cddf4a15b88 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 11 Feb 2013 11:13:31 +0530 Subject: [PATCH] use poster frame for video preview --- static/js/pandora/info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/info.js b/static/js/pandora/info.js index 6a65b6fd..529634e8 100644 --- a/static/js/pandora/info.js +++ b/static/js/pandora/info.js @@ -81,7 +81,7 @@ pandora.ui.info = function() { } else if (view == 'video') { pandora.api.get({ id: id, - keys: ['duration', 'rendered', 'videoRatio'] + keys: ['duration', 'posterFrame', 'rendered', 'videoRatio'] }, function(result) { emptyInfo(); if (result.data && result.data.rendered) { @@ -93,7 +93,7 @@ pandora.ui.info = function() { id: id, position: !ui.item && ui.listView == 'timelines' ? (ui.videoPoints[id] ? ui.videoPoints[id].position : 0) - : void 0, + : result.data.posterFrame, width: ui.sidebarSize }) .bindEvent({