MediaStreamTrack class abstract

Abstract representation of a single media unit on native or web side.

Constructors

MediaStreamTrack()

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

clone() Future<MediaStreamTrack>
Creates a new instance of MediaStreamTrack, which will depend on the same media source as this MediaStreamTrack.
deviceId() String
Returns unique ID of the device from which this MediaStreamTrack was created.
dispose() Future<void>
Disposes this MediaStreamTrack instance.
facingMode() FacingMode?
Returns FacingMode of this MediaStreamTrack.
height() Future<int?>
Returns height of this MediaStreamTrack.
id() String
Returns unique identifier of this MediaStreamTrack.
isEnabled() bool
Returns enabled state of the MediaStreamTrack.
kind() MediaKind
Returns the MediaKind of this MediaStreamTrack.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEnded(OnEndedCallback cb) → void
Subscribes provided callback to the onEnded events of this MediaStreamTrack.
setEnabled(bool enabled) Future<void>
Sets enabled state of the MediaStreamTrack.
state() Future<MediaStreamTrackState>
Returns MediaStreamTrackState of the MediaStreamTrack.
stop() Future<void>
Stops this MediaStreamTrack.
toString() String
A string representation of this object.
inherited
width() Future<int?>
Returns width of this MediaStreamTrack.

Operators

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