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

Should I use XRDevice or XRDisplay? #89

Open
YoneChen opened this issue Mar 6, 2018 · 2 comments
Open

Should I use XRDevice or XRDisplay? #89

YoneChen opened this issue Mar 6, 2018 · 2 comments

Comments

@YoneChen
Copy link

YoneChen commented Mar 6, 2018

I found that the WebXR Device API draft uses requestDevice to get XRDevice:
https://immersive-web.github.io/webxr/spec/latest/#xrdevice-interface
but the webxr-polyfill hasn't declared XRDevice yet?

@speigg
Copy link

speigg commented Mar 6, 2018

The polyfill is a little bit out of date compared to the current spec. I have a branch that is more up-to-date, and can work on a PR if people are interested.

@blairmacintyre
Copy link
Contributor

As @speigg says, the polyfill is based on the experimental API we worked on last year (https://github.com/mozilla/webxr-api). Now that the WebVR community is moving to WebXR, and the new API is being developed, I expect we'll all adapt to the new API when it's done.

Right now, the new API is still not complete, and still being drafted. So, we haven't been updating to follow it.

There have been discussions in the immersive-web community group about the right way to move forward with a polyfill; my current expectation is that a new polyfill will be created, and that will will also shift to using it. We'll figure out how the WebXR Viewer, ArgonXR, and the Google Apps will work with it, but I think that over the next little while we'll sort it out. We may update this polyfill to match the API, for example, or just switch to a new one if it can be made to support all the apps we care about.

So, I don't think it's worth updating this polyfill to follow the API just yet.

@mozilla mozilla deleted a comment Jun 24, 2018
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

3 participants