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