Page 1 of 1

fullscreen button not working in iFrame

Posted: Wed Jun 13, 2018 1:28 pm
by stalwart
Hi all,

Quick Q.

Client is linking to a tour I'm hosting for them, and dropping the "index.html" file into an iFrame - and the fullscreen button isn't working:

http://gazeley.com/property/magna-park- ... rnado-186/

What are they / am I doing wrong? The URL works if viewed direct: http://www.360imagery.co.uk/virtualtour ... rnado_186/

Stu

Re: fullscreen button not working in iFrame

Posted: Wed Jun 13, 2018 2:15 pm
by Hopki
Hi Stu,
Make sure the iframe has the relevant permissions to allow fullscreen.
Example:

Code: Select all

<iframe src="http://yoursite.com/tour/pano.html" name="panorama" width="640" height="480" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="float:left; margin-left:0px" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
Regards,
Hopki