XRMediaBinding class
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The 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.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- XRMediaBinding(XRSession session)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createCylinderLayer(
HTMLVideoElement video, [XRMediaCylinderLayerInit? init]) → XRCylinderLayer -
Available on XRMediaBinding, provided by the PropsXRMediaBinding extension
-
createEquirectLayer(
HTMLVideoElement video, [XRMediaEquirectLayerInit? init]) → XREquirectLayer -
Available on XRMediaBinding, provided by the PropsXRMediaBinding extension
-
createQuadLayer(
HTMLVideoElement video, [XRMediaQuadLayerInit? init]) → XRQuadLayer -
Available on XRMediaBinding, provided by the PropsXRMediaBinding extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited