vendredi 20 novembre 2015

StageDisplayState.FULL_SCREEN not working in Facebook iFrame in Chrome

StageDisplayState.FULL_SCREEN not working in Facebook iFrame in Chrome. No any error is displayed. It works in Chrome if you directly open the page displayed in iFrame.

You can test it here: http://ift.tt/1O808I7

Click on the game and press "Insert" to go full-screen.

-

Chrome iFrame: http://ift.tt/1O808I7 - Doesn't

Chrome: http://ift.tt/1S9MPG4 - WORKS

Firefox iFrame: http://ift.tt/1O808I7 - WORKS

Firefox: http://ift.tt/1S9MPG4 - WORKS

-

Code in AS3:

stage.displayState = StageDisplayState.FULL_SCREEN;

Embed code:

params.allowfullscreen = true;

Facebook iFrame attributes:

<iframe class="canvas_iframe_util" frameborder="0" scrolling="no" id="iframe_canvas" name="iframe_canvas_fb_https" src='javascript:""' height="1000" webkitallowfullscreen="" mozallowfullscreen="" oallowfullscreen="" msallowfullscreen="" allowfullscreen=""></iframe>

-

Tried multiple embed methods... But none of them worked...

Aucun commentaire:

Enregistrer un commentaire