forked from 0x2620/pandora
update embed player
This commit is contained in:
parent
7ddc0b6e40
commit
d23f145a7d
1 changed files with 10 additions and 3 deletions
|
@ -60,9 +60,16 @@ pandora.ui.embedPlayer = function(data) {
|
|||
playInToOut: true,
|
||||
width: window.innerWidth
|
||||
},
|
||||
options = Ox.extend({
|
||||
item: ui.item
|
||||
}, ui.videoPoints[ui.item] || {}, defaults, ui.hash.query);
|
||||
options,
|
||||
query = {};
|
||||
ui.hash.query.forEach(function(condition) {
|
||||
if (condition.key != 'embed') {
|
||||
query[condition.key] = condition.value;
|
||||
}
|
||||
})
|
||||
options = Ox.extend({
|
||||
item: ui.item
|
||||
}, ui.videoPoints[ui.item] || {}, defaults, query);
|
||||
if (!options.position) {
|
||||
options.position = options['in'] || 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue