forked from 0x2620/pandora
fix embed player w/o in/out
This commit is contained in:
parent
f56b1796ce
commit
9a31664b77
1 changed files with 4 additions and 5 deletions
|
@ -39,9 +39,9 @@ Ox.load('UI', {
|
||||||
enableVolume: true,
|
enableVolume: true,
|
||||||
externalControls: false,
|
externalControls: false,
|
||||||
height: window.innerHeight,
|
height: window.innerHeight,
|
||||||
'in': options['in'] || 0,
|
'in': options['in'],
|
||||||
invertHighlight: true,
|
invertHighlight: true,
|
||||||
out: options.out || data.duration,
|
out: options.out,
|
||||||
paused: options.paused,
|
paused: options.paused,
|
||||||
position: options['in'],
|
position: options['in'],
|
||||||
poster: '/' + options.item + '/' + '96p' + options['in'] +'.jpg',
|
poster: '/' + options.item + '/' + '96p' + options['in'] +'.jpg',
|
||||||
|
@ -155,6 +155,7 @@ Ox.load('UI', {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function getVideoUrl(id, resolution, part) {
|
function getVideoUrl(id, resolution, part) {
|
||||||
var prefix = pandora.site.site.videoprefix
|
var prefix = pandora.site.site.videoprefix
|
||||||
.replace('{id}', id)
|
.replace('{id}', id)
|
||||||
|
@ -227,8 +228,6 @@ Ox.load('UI', {
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
view: 'video',
|
view: 'video',
|
||||||
'in': 0,
|
|
||||||
out: 10,
|
|
||||||
paused: true,
|
paused: true,
|
||||||
item: ''
|
item: ''
|
||||||
};
|
};
|
||||||
|
@ -239,7 +238,7 @@ Ox.load('UI', {
|
||||||
'true': true, 'false': false
|
'true': true, 'false': false
|
||||||
}[query[v[0]]] || query[v[0]];
|
}[query[v[0]]] || query[v[0]];
|
||||||
});
|
});
|
||||||
|
|
||||||
return Ox.extend({}, defaults, query);
|
return Ox.extend({}, defaults, query);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue