Open brycethomas opened 1 year ago
It definitely seems like something worth talking about and I think there is room for discussion in this group.
I'd be worried about the user's position information being exposed to the page, so I think it would need to be pretty coarse grained. It sounds like something that would be a CSS media query rather than a JS API.
Tagging for potential /facetoface discussion next week if I'm not too late. Else we can continue the conversation here.
/facetoface discuss panel distance API shape
Magic Leap's browser exposed the browser panel's orientation (vertical or horizontal) to Javascript: https://ml1-developer.magicleap.com/en-us/learn/guides/prismatic-page-orientation
There's also the previous discussions on a 'Magic Window' mode, where this distance API use case would be able to be implemented with. Of course Magic Window is a much bigger feature. https://github.com/immersive-web/webxr/issues/224
From https://github.com/w3c/webappswg/issues/93 (I'm not sure if
webappswg
orimmersive-web
is a more appropriate venue, so sharing the proposal here):