XRMediaBinding

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The XRMediaBinding interface is used to create layers that display the content of an HTMLVideoElement.

Note: Only the video frames will be displayed in the layer. Video controls need to be implemented separately and must be drawn in another layer.

Constructor

XRMediaBinding()

Creates a new XRMediaBinding object for the specified XRSession.

Methods

XRMediaBinding.createCylinderLayer()

Returns an XRCylinderLayer object bound to an HTMLVideoElement.

XRMediaBinding.createEquirectLayer()

Returns an XREquirectLayer object bound to an HTMLVideoElement.

XRMediaBinding.createQuadLayer()

Returns an XRQuadLayer object bound to an HTMLVideoElement.

Specifications

No specification found

No specification data found for api.XRMediaBinding.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.XRMediaBinding.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also