WebXR Raw Camera Access Module

From WebXR Wiki
Revision as of 01:01, 1 March 2023 by Msub2 (talk | contribs) (Add short summary and WebIDL)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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