VR requestPresent denied on Pixel with Daydream |
|||
Issue description
I'm building a small sample for VR with a Pixel and a Daydream headset. In the page I've registered event listeners for VR events, e.g.
window.addEventListener('vrdisplayactivate', evt => {
evt.preventDefault();
this._activateVR();
});
Which I understand should be an indicator to Android that it should not launch the Daydream app when the device is placed on a Daydream headset, or when requestPresent is called within the app code.
Unfortunately as soon as the Pixel is placed on the headset, or requestPresent is called, the Daydream app kicks in. If I switch back to Chrome I get the following rejection error from the requestPresent Promise:
NotAllowedError: Presentation request was denied.
It could be my bug, this one, but if so I'm not sure where!
,
Nov 24 2016
Yeah I was using https://play.google.com/store/apps/details?id=com.chrome.canary&hl=en, which updated today (M57), and I enabled the WebVR flag in about://flags.
,
Nov 24 2016
To confirm, it's 57.0.2929.0
,
Nov 25 2016
D'oh! My bad. I didn't realise that it would launch the Daydream app to do view centering before dropping back to Canary. Clearly this is WAI... :D
,
Nov 30 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by mthiesse@chromium.org
, Nov 24 2016