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'
|
||||
+ size + 'p' + i + '.jpg'
|
||||
} : '/' + options.item + '/' + 'timeline16p.png',
|
||||
title: result.data.title,
|
||||
title: data.title,
|
||||
video: data.video,
|
||||
width: options.width
|
||||
}, options['in'] ? {
|
||||
|
@ -52,14 +52,17 @@ pandora.ui.embedPlayer = function(data) {
|
|||
} : {}));
|
||||
|
||||
function getOptions() {
|
||||
var defaults = {
|
||||
height: 144,
|
||||
var ui = pandora.user.ui,
|
||||
defaults = {
|
||||
height: window.innerHeight,
|
||||
invertHighlight: true,
|
||||
paused: 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) {
|
||||
options.position = options['in'] || 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue