Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. XRMediaBinding

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.

Constructor

XRMediaBinding()Experimental

Creates a newXRMediaBinding object for the specifiedXRSession.

Instance methods

XRMediaBinding.createCylinderLayer()Experimental

Returns anXRCylinderLayer object bound to anHTMLVideoElement.

XRMediaBinding.createEquirectLayer()Experimental

Returns anXREquirectLayer object bound to anHTMLVideoElement.

XRMediaBinding.createQuadLayer()Experimental

Returns anXRQuadLayer object bound to anHTMLVideoElement.

Specifications

Specification
WebXR Layers API Level 1
# XRWebGLBindingtype

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp