LocalMediaTrack class abstract

Strongly referenced media track received from a getUserMedia()/getDisplayMedia() request.

Implemented types

Constructors

LocalMediaTrack()

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

free() Future<void>
Drops the associated Rust struct and nulls the local Pointer to it.
inherited
getNoiseSuppressionLevel() Future<NoiseSuppressionLevel>
Returns the current configured noise suppression level of this LocalMediaTrack.
getTrack() → MediaStreamTrack
Returns the underlying MediaStreamTrack of this LocalMediaTrack.
inherited
isAudioProcessingAvailable() bool
Indicates whether this LocalMediaTrack supports audio processing functions:
isAutoGainControlEnabled() Future<bool>
Indicates whether auto gain control is enabled for this LocalMediaTrack.
isEchoCancellationEnabled() Future<bool>
Indicates whether acoustic echo cancellation is enabled for this LocalMediaTrack.
isHighPassFilterEnabled() Future<bool>
Indicates whether high-pass filter is enabled for this LocalMediaTrack.
isNoiseSuppressionEnabled() Future<bool>
Indicates whether noise suppression is enabled for this LocalMediaTrack.
isOnAudioLevelAvailable() bool
Indicates whether an OnAudioLevelChangedCallback is supported for this MediaTrack.
kind() MediaKind
Returns the MediaKind.Audio if this LocalMediaTrack represents an audio track, or the MediaKind.Video if it represents a video track.
inherited
mediaSourceKind() MediaSourceKind
Returns the MediaSourceKind.Device if this LocalMediaTrack is sourced from some device (webcam/microphone), or the MediaSourceKind.Display if it's captured via MediaDevices.getDisplayMedia().
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAudioLevelChanged(OnAudioLevelChangedCallback f) → void
Sets the provided OnAudioLevelChangedCallback for this MediaTrack.
onEnded(OnEndedCallback f) → void
Sets a callback to invoke when this LocalMediaTrack is ended.
setAutoGainControlEnabled(bool enabled) Future<void>
Toggles automatic gain control for this LocalMediaTrack.
setEchoCancellationEnabled(bool enabled) Future<void>
Toggles acoustic echo cancellation for this LocalMediaTrack.
setHighPassFilterEnabled(bool enabled) Future<void>
Toggles high-pass filter for this LocalMediaTrack.
setNoiseSuppressionEnabled(bool enabled) Future<void>
Toggles noise suppression for this LocalMediaTrack.
setNoiseSuppressionLevel(NoiseSuppressionLevel level) Future<void>
Configures a noise suppression level for this LocalMediaTrack.
state() Future<MediaStreamTrackState>
Returns a MediaStreamTrackState.live if this LocalMediaTrack is active, or a MediaStreamTrackState.ended if it has ended.
toString() String
A string representation of this object.
inherited

Operators

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