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,
|
video: data.video,
|
||||||
width: window.innerWidth
|
width: window.innerWidth
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent(Ox.extend({
|
||||||
open: function() {
|
open: function() {
|
||||||
pandora.$player.options({paused: true});
|
pandora.$player.options({paused: true});
|
||||||
var url = document.location.protocol
|
var url = document.location.protocol
|
||||||
|
@ -63,15 +63,16 @@ Ox.load('UI', {
|
||||||
+ Ox.formatDuration(pandora.$player.options('position'));
|
+ Ox.formatDuration(pandora.$player.options('position'));
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
},
|
},
|
||||||
playing: checkRange,
|
|
||||||
position: checkRange,
|
|
||||||
resolution: function(data) {
|
resolution: function(data) {
|
||||||
pandora.api.setUI({'videoResolution': data.resolution});
|
pandora.api.setUI({'videoResolution': data.resolution});
|
||||||
},
|
},
|
||||||
fullscreen: function(data) {
|
fullscreen: function(data) {
|
||||||
Ox.Fullscreen.toggle();
|
Ox.Fullscreen.toggle();
|
||||||
}
|
}
|
||||||
})
|
}, options['in'] || options.out ? {
|
||||||
|
playing: checkRange,
|
||||||
|
position: checkRange
|
||||||
|
} : {}))
|
||||||
);
|
);
|
||||||
Ox.UI.hideLoadingScreen();
|
Ox.UI.hideLoadingScreen();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue