forked from 0x2620/pandora
fix embed player w/o in/out
This commit is contained in:
parent
9a31664b77
commit
81ec62802a
1 changed files with 5 additions and 4 deletions
|
@ -54,7 +54,7 @@ Ox.load('UI', {
|
|||
video: data.video,
|
||||
width: window.innerWidth
|
||||
})
|
||||
.bindEvent({
|
||||
.bindEvent(Ox.extend({
|
||||
open: function() {
|
||||
pandora.$player.options({paused: true});
|
||||
var url = document.location.protocol
|
||||
|
@ -63,15 +63,16 @@ Ox.load('UI', {
|
|||
+ Ox.formatDuration(pandora.$player.options('position'));
|
||||
window.open(url, '_blank');
|
||||
},
|
||||
playing: checkRange,
|
||||
position: checkRange,
|
||||
resolution: function(data) {
|
||||
pandora.api.setUI({'videoResolution': data.resolution});
|
||||
},
|
||||
fullscreen: function(data) {
|
||||
Ox.Fullscreen.toggle();
|
||||
}
|
||||
})
|
||||
}, options['in'] || options.out ? {
|
||||
playing: checkRange,
|
||||
position: checkRange
|
||||
} : {}))
|
||||
);
|
||||
Ox.UI.hideLoadingScreen();
|
||||
|
||||
|
|
Loading…
Reference in a new issue