I need to embed the krpano viewer in an iframe for use on mobile devices, using the gyro plugin. This work properly in portrait but won't handle the rotation event to landscape.
I am aware that onorientationchange events do not fire in iframes, so is there any way we can get an HTML5 postMessage interface for passing this message through to the viewer manually from the host page? I am trying to force the orientationchange event in the iframe manually with no luck.
EDIT: I am creating my own event and firing it, and that happens properly. However, I am unable to set window.orientation (not allowed by the browser). I need to know what to set to make the viewer work or if this is possible.
Thanks.