update embed player

This commit is contained in:
rolux 2013-02-20 12:05:13 +05:30
parent 7ddc0b6e40
commit d23f145a7d

View file

@ -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;
}