WebXR-emulator-extension icon indicating copy to clipboard operation
WebXR-emulator-extension copied to clipboard

How to interact with native WebXR API supported by browser

Open takahirox opened this issue 6 years ago • 7 comments

Some WebXR API needs to recognize XR device, for example supportsSession(mode) checks if device supports the specified mode. Probably need to investigate how emulated XR device can be recognized by WebXR API supported by browser.

takahirox avatar Jun 22 '19 14:06 takahirox

Will we always override XR with polyfill XR?

takahirox avatar Jun 27 '19 04:06 takahirox

Always overriding so far and I added a note about it to readme.

takahirox avatar Nov 07 '19 00:11 takahirox

Maybe I should send the feedback about this issue for test purpose to WebXR API (or somewhere else).

takahirox avatar Nov 19 '19 19:11 takahirox

An idea from Kip. We may use WebXR Test API when it's available.

https://github.com/immersive-web/webxr-test-api https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md

If you want to try similar stuff now, we may use VRServiceTest on Firefox with browser flags

dom.vr.puppet.enabled = true
dom.vr.process.enabled = false

Refer to VRPuppetCommandBuffer.h and VRServiceTest.webidl for API.

takahirox avatar Feb 03 '20 21:02 takahirox

Another option may be talking to devtool team to see if we can directly embed WebXR emulator extension to browser where it may have access to Testing API, I'm not really sure if Firefox/Chrome accept tho.

takahirox avatar Feb 05 '20 22:02 takahirox

That sounds like a giant change. Let's put this on the backburner for now.

joshmarinacci avatar Feb 05 '20 22:02 joshmarinacci

Yes, this should be far future work because I researched and realized that there is no easy way to work with the native API noe.

takahirox avatar Feb 05 '20 22:02 takahirox