use poster frame for video preview

This commit is contained in:
rolux 2013-02-11 11:13:31 +05:30
parent 592d7796cd
commit 8368e9cbdf

View file

@ -81,7 +81,7 @@ pandora.ui.info = function() {
} else if (view == 'video') { } else if (view == 'video') {
pandora.api.get({ pandora.api.get({
id: id, id: id,
keys: ['duration', 'rendered', 'videoRatio'] keys: ['duration', 'posterFrame', 'rendered', 'videoRatio']
}, function(result) { }, function(result) {
emptyInfo(); emptyInfo();
if (result.data && result.data.rendered) { if (result.data && result.data.rendered) {
@ -93,7 +93,7 @@ pandora.ui.info = function() {
id: id, id: id,
position: !ui.item && ui.listView == 'timelines' position: !ui.item && ui.listView == 'timelines'
? (ui.videoPoints[id] ? ui.videoPoints[id].position : 0) ? (ui.videoPoints[id] ? ui.videoPoints[id].position : 0)
: void 0, : result.data.posterFrame,
width: ui.sidebarSize width: ui.sidebarSize
}) })
.bindEvent({ .bindEvent({