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,
|
playInToOut: true,
|
||||||
width: window.innerWidth
|
width: window.innerWidth
|
||||||
},
|
},
|
||||||
options = Ox.extend({
|
options,
|
||||||
item: ui.item
|
query = {};
|
||||||
}, ui.videoPoints[ui.item] || {}, defaults, ui.hash.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) {
|
if (!options.position) {
|
||||||
options.position = options['in'] || 0;
|
options.position = options['in'] || 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue