positions not ids and other cleanups
This commit is contained in:
parent
f4e0aa7cf6
commit
c37d303752
9 changed files with 72 additions and 49 deletions
|
|
@ -6,8 +6,8 @@ pandora.ui.flipbook = function(item) {
|
|||
pandora.URL.set(item + '/timeline');
|
||||
});
|
||||
pandora.api.getItem(item, function(result) {
|
||||
var duration = result.data.item.duration,
|
||||
posterFrame = result.data.item.posterFrame || parseInt(duration/2),
|
||||
var duration = result.data.duration,
|
||||
posterFrame = result.data.posterFrame || parseInt(duration/2),
|
||||
steps = 24,
|
||||
framePrefix = '/' + item + '/frame/' + that.width() + '/',
|
||||
frames = {};
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
|
|||
}
|
||||
if (data.ids.length == 1) {
|
||||
pandora.api.getItem(data.ids[0], function(result) {
|
||||
app.ui.infoRatio = result.data.item.stream.aspectRatio;
|
||||
app.ui.infoRatio = result.data.stream.aspectRatio;
|
||||
var height = app.$ui.info.width() / app.ui.infoRatio + 16;
|
||||
if(app.$ui.infoStill) app.$ui.infoStill.removeElement();
|
||||
app.$ui.infoStill = pandora.ui.flipbook(data.ids[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue