Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyfill for AR? #73

Open
pampas93 opened this issue Aug 28, 2019 · 1 comment
Open

Polyfill for AR? #73

pampas93 opened this issue Aug 28, 2019 · 1 comment

Comments

@pampas93
Copy link

I'm trying to create an AR test from the latest chrome stable (76.0.3809.111) browser on my pixel 2, but after enabling all the WebXR flags, I get an exception while calling the navigator.xr.requestDevice() with TypeError: navigator.xr.requestDevice is not a function

I get the above error with and without using the webxr-polyfill.js within my loading page. Any idea if or how and get around this? Or is it just implemented for supporting VR for now?

The above works fine on the Chrome Dev (71.0.3574.0).

@pampas93 pampas93 changed the title Polyfill for for AR? Polyfill for AR? Aug 28, 2019
@jsantell
Copy link
Contributor

The latest WebXR spec no longer has requestDevice API, and Chrome 76-77(ish) are targeting this newer version, as well as the polyfill. The AR features are still being developed, and there's not yet anyway to polyfill those (tracking in #22). This repo will be updated once the implementation has stabilized in a browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants