Opened 11 years ago
Last modified 11 years ago
#12073 assigned New Feature
Iframe allow fullscreen
| Reported by: | Matti Järvinen | Owned by: | Jakub Ś |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.0 |
| Keywords: | Cc: |
Description
Currently it is not possible with CKEditor iframe plugin to allow HTML5 video embeds (YouTube, Vimeo etc.) to go fullscreen.
Required attributes to allow fullscreen are:
- fullscreen="true"
- allowfullscreen="true"
- mozallowfullscreen="true"
- webkitallowfullscreen="true"
Definition for fullscreen, note change label to editor.lang.iframe.allowFullscreen or similar.
{
id : 'allowFullScreen',
type : 'checkbox',
label : 'Allow Fullscreen',
'default' : '',
setup : function( element )
{
var value = element.hasAttribute( 'fullscreen' );
this.setValue( value || '' );
},
commit : function( element )
{
if ( this.getValue() )
{
element.setAttribute( 'fullscreen', 'true' );
element.setAttribute( 'allowfullscreen', 'true' );
element.setAttribute( 'mozallowfullscreen', 'true' );
element.setAttribute( 'webkitallowfullscreen', 'true' );
}else
{
element.removeAttribute( 'fullscreen' );
element.removeAttribute( 'allowfullscreen' );
element.removeAttribute( 'mozallowfullscreen' );
element.removeAttribute( 'webkitallowfullscreen' );
}
}
}
Change History (1)
comment:1 Changed 11 years ago by
| Owner: | set to Jakub Ś |
|---|---|
| Status: | new → assigned |
| Version: | → 4.0 |

Seems that fullscreen technology gains some attention at the moment:
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
http://sorcery.smugmug.com/2012/06/06/using-html5s-fullscreen-api-for-fun-and-profit/
Some examples:
http://www.leanbackplayer.com/example_iframe.html
https://brad.is/coding/BigScreen/