put iframe into fullscreen
This commit is contained in:
parent
6cfaa54f97
commit
397badc10f
2 changed files with 8 additions and 2 deletions
|
@ -25,10 +25,11 @@ Ox.load('UI', {
|
||||||
censored: data.censored,
|
censored: data.censored,
|
||||||
censoredIcon: pandora.site.cantPlay.icon,
|
censoredIcon: pandora.site.cantPlay.icon,
|
||||||
censoredTooltip: pandora.site.cantPlay.text,
|
censoredTooltip: pandora.site.cantPlay.text,
|
||||||
|
controlsTop: Ox.Fullscreen.available ? ['fullscreen'] : null,
|
||||||
controlsBottom: ['play', 'volume', 'scale', 'timeline', 'settings'],
|
controlsBottom: ['play', 'volume', 'scale', 'timeline', 'settings'],
|
||||||
duration: data.duration,
|
duration: data.duration,
|
||||||
enableFind: false,
|
enableFind: false,
|
||||||
enableFullscreen: true,
|
enableFullscreen: Ox.Fullscreen.available,
|
||||||
enableKeyboard: true,
|
enableKeyboard: true,
|
||||||
enableMouse: true,
|
enableMouse: true,
|
||||||
enableTimeline: true,
|
enableTimeline: true,
|
||||||
|
@ -55,6 +56,9 @@ Ox.load('UI', {
|
||||||
resolution: function(data) {
|
resolution: function(data) {
|
||||||
pandora.api.setUI({'videoResolution': data.resolution});
|
pandora.api.setUI({'videoResolution': data.resolution});
|
||||||
},
|
},
|
||||||
|
fullscreen: function(data) {
|
||||||
|
Ox.Fullscreen.toggle();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
Ox.UI.hideLoadingScreen();
|
Ox.UI.hideLoadingScreen();
|
||||||
|
|
|
@ -45,7 +45,9 @@ pandora.ui.embedDialog = function(data) {
|
||||||
'<iframe width="' + width
|
'<iframe width="' + width
|
||||||
+ '" height="' + height
|
+ '" height="' + height
|
||||||
+ '" src="' + constructURL(data)
|
+ '" src="' + constructURL(data)
|
||||||
+ '" frameborder="0" allowfullscreen></iframe>'
|
+ '" frameborder="0" '
|
||||||
|
+ 'webkitAllowFullScreen mozallowfullscreen allowFullScreen'
|
||||||
|
+ '></iframe>'
|
||||||
).on({
|
).on({
|
||||||
click: function() {
|
click: function() {
|
||||||
this.focus();
|
this.focus();
|
||||||
|
|
Loading…
Reference in a new issue