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 specifiedXRSession
.
Methods
XRMediaBinding.createCylinderLayer()
-
Returns an
XRCylinderLayer
object bound to anHTMLVideoElement
. XRMediaBinding.createEquirectLayer()
-
Returns an
XREquirectLayer
object bound to anHTMLVideoElement
. XRMediaBinding.createQuadLayer()
-
Returns an
XRQuadLayer
object 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