new frame urls
This commit is contained in:
parent
73a14c8a47
commit
12e2c36d89
3 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ pandora.ui.flipbook = function(item) {
|
|||
var duration = result.data.duration,
|
||||
posterFrame = result.data.posterFrame || parseInt(duration/2),
|
||||
steps = 24,
|
||||
framePrefix = '/' + item + '/frame' + that.height() + 'p',
|
||||
framePrefix = '/' + item + '/' + that.height() + 'p',
|
||||
frames = {};
|
||||
Ox.range(0, duration, duration/steps).forEach(function(position) {
|
||||
position = parseInt(position);
|
||||
|
|
|
@ -181,7 +181,7 @@ pandora.ui.item = function() {
|
|||
var ratio = data.aspectRatio,
|
||||
width = size,
|
||||
height = size/ratio,
|
||||
url = '/' + data.item + '/frame/' + size + '/'+data['in'] + '.jpg';
|
||||
url = '/' + data.item + '/' + size + '/'+data['in'] + '.jpg';
|
||||
return {
|
||||
height: height,
|
||||
id: data['id'],
|
||||
|
|
|
@ -202,7 +202,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
|
|||
var fixedRatio = 4/3,
|
||||
width = data.aspectRatio < fixedRatio ? size : size * data.aspectRatio / fixedRatio,
|
||||
height = width / data.aspectRatio,
|
||||
url = '/' + data.item + '/frame/' + width + '/' + data['in'] + '.jpg';
|
||||
url = '/' + data.item + '/' + width + '/' + data['in'] + '.jpg';
|
||||
return {
|
||||
height: height,
|
||||
id: data.id,
|
||||
|
|
Loading…
Reference in a new issue