web api interface
XRMediaBinding
Secure contextLimited availability
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()Experimental- : Creates a new
XRMediaBindingobject for the specifiedXRSession.
- : Creates a new
Instance methods
createCylinderLayer()Experimental- : Returns an
XRCylinderLayerobject bound to anHTMLVideoElement.
- : Returns an
createEquirectLayer()Experimental- : Returns an
XREquirectLayerobject bound to anHTMLVideoElement.
- : Returns an
createQuadLayer()Experimental- : Returns an
XRQuadLayerobject bound to anHTMLVideoElement.
- : Returns an
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.