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') {
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({