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
no setterinherited
events EventsEmitter<TrackEvent>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isActive bool
no setter
isDisposed bool
no setterinherited
kind TrackType
final
mediaStream → MediaStream
no setter
mediaStreamTrack → MediaStreamTrack
no setter
mediaType → RTCRtpMediaType
no setter
muted bool
no setter
name String
final
receiver ↔ RTCRtpReceiver?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender → RTCRtpSender?
no setter
sid String?
getter/setter pair
source TrackSource
final
transceiver ↔ RTCRtpTransceiver?
getter/setter pair

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