Intent to Prototype: WebXR Front Facing Camera API

138 views
Skip to first unread message

Piotr Bialecki

unread,
Jan 11, 2023, 6:32:17 PM1/11/23
to blink-dev

Contact emails

bia...@chromium.org

Explainer

https://github.com/immersive-web/front-facing-camera/blob/main/explainer.md

Specification



Summary

The front-facing camera API enables WebXR-powered experiences to express their preference to use a front-facing (or "selfie") camera when creating immersive sessions. Some XR device form factors, most notably smartphones, have multiple cameras that can be used to power an immersive (generally AR) experience. The native AR frameworks already allow developers to configure the AR session by selecting the camera to be used - front-facing camera API exposes this configuration knob through WebXR.



Blink component

Blink>WebXR>AR

Motivation

Some XR device form factors, most notably smartphones, have multiple cameras that can be used to power an immersive (generally AR) experience. The native AR frameworks allow developers to configure the AR session by selecting the camera to be used; however, this configuration knob is currently unavailable in WebXR. The front-facing camera API changes that by enabling sites to express their preference to use a front-facing camera when creating immersive sessions. There are currently no (easy) possible workarounds to this feature gap - the sites would have to write custom AR frameworks, possibly on top of existing `getUserMedia()` and `DeviceOrientation` APIs.



Initial public proposal

https://github.com/immersive-web/proposals/issues/78

TAG review



TAG review status

Pending

Risks



Interoperability and Compatibility



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests?

No

Flag name



Requires code in //chrome?

False

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/4889480736014336

This intent message was generated by Chrome Platform Status.

Reply all
Reply to author
Forward
0 new messages