MediaStreamTrack class

The interface represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.

EventTarget

MediaStreamTrack

Implemented types
Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MediaStreamTrack()
factory

Properties

contentHint String

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
enabled bool

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

no setter
isolated bool

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

no setter
kind String

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

no setter
label String

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

no setter
muted bool

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

no setter
oncapturehandlechange EventHandlerNonNull<Event>?

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
onended EventHandlerNonNull<Event>?

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
onisolationchange EventHandlerNonNull<Event>?

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
onmute EventHandlerNonNull<Event>?

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
onunmute EventHandlerNonNull<Event>?

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getter/setter pair
readyState MediaStreamTrackState

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

applyConstraints([MediaTrackConstraints? constraints]) Future<void>

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

clone() → dynamic

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

getCapabilities() MediaTrackCapabilities

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getCaptureHandle() CaptureHandle?

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getConstraints() MediaTrackConstraints

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getSettings() MediaTrackSettings

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

getSupportedCaptureActions() Iterable<String>

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

sendCaptureAction(CaptureAction action) Future<void>

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

stop() → void

Available on MediaStreamTrack, provided by the PropsMediaStreamTrack extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited