forked from 0x2620/pandora
update embed player
This commit is contained in:
parent
7142095411
commit
10b53ee63d
1 changed files with 8 additions and 5 deletions
|
@ -42,7 +42,7 @@ pandora.ui.embedPlayer = function(data) {
|
||||||
+ '/timelineantialias'
|
+ '/timelineantialias'
|
||||||
+ size + 'p' + i + '.jpg'
|
+ size + 'p' + i + '.jpg'
|
||||||
} : '/' + options.item + '/' + 'timeline16p.png',
|
} : '/' + options.item + '/' + 'timeline16p.png',
|
||||||
title: result.data.title,
|
title: data.title,
|
||||||
video: data.video,
|
video: data.video,
|
||||||
width: options.width
|
width: options.width
|
||||||
}, options['in'] ? {
|
}, options['in'] ? {
|
||||||
|
@ -52,14 +52,17 @@ pandora.ui.embedPlayer = function(data) {
|
||||||
} : {}));
|
} : {}));
|
||||||
|
|
||||||
function getOptions() {
|
function getOptions() {
|
||||||
var defaults = {
|
var ui = pandora.user.ui,
|
||||||
height: 144,
|
defaults = {
|
||||||
|
height: window.innerHeight,
|
||||||
invertHighlight: true,
|
invertHighlight: true,
|
||||||
paused: true,
|
paused: true,
|
||||||
playInToOut: true,
|
playInToOut: true,
|
||||||
width: 256
|
width: window.innerWidth
|
||||||
},
|
},
|
||||||
options = Ox.extend(defaults, pandora.user.ui.hash.query);
|
options = Ox.extend({
|
||||||
|
item: ui.item
|
||||||
|
}, ui.videoPoints[ui.item] || {}, defaults, ui.hash.query);
|
||||||
if (!options.position) {
|
if (!options.position) {
|
||||||
options.position = options['in'] || 0;
|
options.position = options['in'] || 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue