I put the krvideopano web insert to a iframe, then not support gyro in the mobile browser(ios-safari), why?
this is the page : http://game.veleking.org/parent.html
I put the krvideopano web insert to a iframe, then not support gyro in the mobile browser(ios-safari), why?
this is the page : http://game.veleking.org/parent.html
Hi,
i am not sure why,i guess it is a security thing.
I found that when you use a local url like: ../../single/index.html
it works!
see:
http://www.virtualtuur.com/krpano/iframe_test/1/
but when you use a full url in the iframe, like http://virtualtuur.com/single/index.html
it does not.
see:
http://www.virtualtuur.com/krpano/iframe_test/2/
(very old panos and interface!)
Not sure if there are workarounds/tricks.
Hope it helps!
Tuur
Display MoreHi,
i am not sure why,i guess it is a security thing.
I found that when you use a local url like: ../../single/index.html
it works!
see:
http://www.virtualtuur.com/krpano/iframe_test/1/but when you use a full url in the iframe, like http://virtualtuur.com/single/index.html
it does not.
see:
http://www.virtualtuur.com/krpano/iframe_test/2/(very old panos and interface!)
Not sure if there are workarounds/tricks.
Hope it helps!
Tuur
Thank you Tuur,
I get it , use "../../single/index.html" in iframe, the parent page has the same domain with index.html, so it can. But how to solve other domain of iframe
Hi,
iOS is blocking the gyro usage in external iframes for security reasons since some of the last iOS releases.
The reason for that decision from Apple was that someone could use the gyro in a hidden iframe to spy you by identifying your taps (like when entering a password) by analyzing the shaking of the device...
I thinks that's more hypothetical than really practical, but okay - Apple is protecting you
That means the gyro in an iframe works only when the main website and the iframe website are on the same domain.
Best regards,
Klaus
Don’t have an account yet? Register yourself now and be a part of our community!