immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
382 stars 85 forks source link

Customizing session request #58

Open jsantell opened 5 years ago

jsantell commented 5 years ago

There's a need when extending the polyfill to customize the request call requestSession() with custom values (e.g. WebXR Viewer). Currently, it requires clobbering the function and manually polyfilling. Is there a nicer way of handling this?

Additionally, extending the actual XRSession object with or without these changes.

Most likely dependent on https://github.com/immersive-web/webxr-polyfill/issues/55