Link to .capx file (required!):
dl.dropboxusercontent.com/u/28297064/iFrame-Breakout%20Test.capx
The link to the html that launches this iframe is - actualconcepts.com/TestTC/testFullscreen2
Steps to reproduce:
1. Mouseclick/touch - Browser object should trigger "request fullscreen" as per the tutorial written by Ashley, link below - scirra.com/tutorials/655/tips-on-publishing-html5-games-to-the-web
2.
3.
Observed result:
The exported html5 game is not breaking out to full screen rather it stays within the limits of the iframe boundary itself.
Expected result:
In the tutorial written by Ashley, link below - scirra.com/tutorials/655/tips-on-publishing-html5-games-to-the-web.
its mentioned as below -
------------------------------------------------------
It's possible for games inside iframes to switch in to fullscreen mode, where it takes up the entire monitor. To support this, your game must not be fixed size - it has to use a fullscreen mode. Then use the Browser object's Request fullscreen action in your game. Finally, you must add the allowfullscreen attribute to the iframe tag like this:
<iframe src="http://www.mywebsite.com/mygame" allowfullscreen="true" width="600" height="400" />
You might also want to cover some vendor prefixes since it's a relatively new HTML5 feature:
<iframe src="http://www.mywebsite.com/mygame" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" msallowfullscreen="true" width="600" height="400" />
With all that in place, your iframed game should now be able to "break out" in to full screen mode!
---------------------------------------------------------
But the exported html5 doesnt break out to fullscreen. It just stays within the iframe.
The link to html with iframe setting is as follows -
actualconcepts.com/TestTC/testFullscreen2
The link to capx is -
dl.dropboxusercontent.com/u/28297064/iFrame-Breakout%20Test.capx
Is this a bug or am I doing something wrong?
Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes
Operating system & service pack:
Construct 2 version: 158 stable release