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
XRMediaBindingobject for the specifiedXRSession.
Methods
XRMediaBinding.createCylinderLayer()-
Returns an
XRCylinderLayerobject bound to anHTMLVideoElement. XRMediaBinding.createEquirectLayer()-
Returns an
XREquirectLayerobject bound to anHTMLVideoElement. XRMediaBinding.createQuadLayer()-
Returns an
XRQuadLayerobject bound to anHTMLVideoElement.
Specifications
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
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRMediaBinding