From @cvan on June 1, 2016 23:18
Issue by brianchirls
Thursday May 19, 2016 at 02:35 GMT
Originally opened as MozillaReality/webvr-spec#34
Over at webvr-polyfill, there's been a request for events that would fire when the Cardboard interstitial appears and disappears. I think I read @toji say somewhere that the interstitial would be built into Chrome on Android. It occurs to me that this is analogous to the Oculus safety screen and that it would be useful to know when these screens are blocking the display so the user doesn't miss any content.
Does anybody know if the Oculus SDK allows detection of this sort of thing?
It seems that there should be a boolean property on the VRDisplay that tells whether the screen is blocked by a warning and an event that fires when this property changes. Maybe something analogous to document.hidden. Alternatively, onvrdisplaypresentchange could wait to fire until the interstitial is cleared, but that might not make sense if different platforms vary enough in their behavior. For example, if Chrome/Android/Cardboard (or the polyfill) shows an interstitial when you tilt the device too close to vertical, then the latter approach wouldn't work.
I could imagine platforms in the future popping up warnings for various safety and comfort reasons, like: an epilepsy blocker if it detects bright flashing light, or an interruption if the frame rate drops too low.
Copied from original issue: immersive-web/webxr#42
From @cvan on June 1, 2016 23:18
Thursday May 19, 2016 at 02:35 GMT
Originally opened as MozillaReality/webvr-spec#34
Over at webvr-polyfill, there's been a request for events that would fire when the Cardboard interstitial appears and disappears. I think I read @toji say somewhere that the interstitial would be built into Chrome on Android. It occurs to me that this is analogous to the Oculus safety screen and that it would be useful to know when these screens are blocking the display so the user doesn't miss any content.
Does anybody know if the Oculus SDK allows detection of this sort of thing?
It seems that there should be a boolean property on the
VRDisplaythat tells whether the screen is blocked by a warning and an event that fires when this property changes. Maybe something analogous todocument.hidden. Alternatively,onvrdisplaypresentchangecould wait to fire until the interstitial is cleared, but that might not make sense if different platforms vary enough in their behavior. For example, if Chrome/Android/Cardboard (or the polyfill) shows an interstitial when you tilt the device too close to vertical, then the latter approach wouldn't work.I could imagine platforms in the future popping up warnings for various safety and comfort reasons, like: an epilepsy blocker if it detects bright flashing light, or an interruption if the frame rate drops too low.
Copied from original issue: immersive-web/webxr#42