WebXR Raw Camera Access Module

From WebXR Wiki
Jump to navigation Jump to search
WebXR Raw Camera Access Module
StatusCG-REPORT
Last Updated24 June 2021
Editor(s)Piotr Bialecki
CG or WG?CG

The WebXR Raw Camera Access module provides a means to access the raw camera image displayed behind an immersive-ar session, when the device is responsible for rendering that camera image.

WebIDL[edit]

partial interface XRView {
  [SameObject] readonly attribute XRCamera? camera;
};

[SecureContext, Exposed=Window]
interface XRCamera {
  readonly attribute unsigned long width;
  readonly attribute unsigned long height;
};

partial interface XRWebGLBinding {
  WebGLTexture? getCameraImage(XRCamera camera);
};

External Links[edit]