Track class abstract

Wrapper around a MediaStreamTrack with additional metadata. Base for AudioTrack and VideoTrack, can not be instantiated directly.

Inheritance
Mixed in types
Implementers

Constructors

Track(TrackType kind, TrackSource source, MediaStream _mediaStream, MediaStreamTrack _mediaStreamTrack, {RTCRtpReceiver? receiver})

Properties

disposeFuncCount int
read-onlyinherited
events EventsEmitter<TrackEvent>
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
hasListeners bool
Whether any listeners are currently registered.
read-onlyinherited
isActive bool
read-only
isDisposed bool
read-onlyinherited
kind TrackType
final
mediaStream MediaStream
read-only
mediaStreamTrack MediaStreamTrack
read-only
mediaType RTCRtpMediaType
read-only
muted bool
read-only
name String
final
receiver RTCRtpReceiver?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sender RTCRtpSender?
read-only
sid String?
read / write
source TrackSource
final
transceiver RTCRtpTransceiver?
read / write

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
createListener({bool synchronized = false}) EventsListener<TrackEvent>
inherited
disable() Future<void>
dispose() Future<bool>
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
enable() Future<void>
getCid() String
monitorStats() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onDispose(OnDisposeFunc func) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
start() Future<bool>
Start this Track if not started. Returns true if started, false if already started
startMonitor() → void
stop() Future<bool>
Stop this Track if not stopped. Returns true if stopped, false if already stopped
stopMonitor() → void
toString() String
A string representation of this object.
inherited
updateMediaStreamAndTrack(MediaStream stream, MediaStreamTrack track) → void
updateMuted(bool muted, {bool shouldNotify = true, bool shouldSendSignal = false}) → void

Operators

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

Constants

uuid → const Uuid
Uuid()