use poster frame for video preview
This commit is contained in:
parent
592d7796cd
commit
8368e9cbdf
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue