XRMediaBinding
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
TheXRMediaBinding interface is used to create layers that display the content of anHTMLVideoElement.
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.
In this article
Constructor
XRMediaBinding()ExperimentalCreates a new
XRMediaBindingobject for the specifiedXRSession.
Instance methods
XRMediaBinding.createCylinderLayer()ExperimentalReturns an
XRCylinderLayerobject bound to anHTMLVideoElement.XRMediaBinding.createEquirectLayer()ExperimentalReturns an
XREquirectLayerobject bound to anHTMLVideoElement.XRMediaBinding.createQuadLayer()ExperimentalReturns an
XRQuadLayerobject bound to anHTMLVideoElement.
Specifications
| Specification |
|---|
| WebXR Layers API Level 1> # XRWebGLBindingtype> |