LocalTrack class abstract

Base class for LocalAudioTrack and LocalVideoTrack.

Inheritance
Implementers

Constructors

LocalTrack(TrackType kind, TrackSource source, MediaStream mediaStream, MediaStreamTrack mediaStreamTrack)

Properties

codec ↔ String?
getter/setter pair
currentOptions ↔ LocalTrackOptions
Options used for this track
getter/setter pair
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 setterinherited
isDisposed → bool
no setterinherited
isPublished → bool
no setter
kind → TrackType
finalinherited
mediaStream → MediaStream
no setterinherited
mediaStreamTrack → MediaStreamTrack
no setterinherited
mediaType → RTCRtpMediaType
no setterinherited
muted → bool
no setterinherited
processor → TrackProcessor<ProcessorOptions<TrackType>>?
no setter
receiver ↔ RTCRtpReceiver?
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender → RTCRtpSender?
no setterinherited
sid ↔ String?
getter/setter pairinherited
source → TrackSource
finalinherited
transceiver ↔ RTCRtpTransceiver?
getter/setter pairinherited

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>
inherited
dispose() → Future<bool>
Discards any resources used by the object.
inherited
enable() → Future<void>
inherited
getCid() → String
inherited
mute({bool stopOnMute = true}) → Future<bool>
Mutes this LocalTrack. This will stop the sending of track data and notify the RemoteParticipant with TrackMutedEvent. Returns true if muted, false if unchanged.
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
restartTrack([LocalTrackOptions? options]) → Future<void>
Restarts the track with new options. This is useful when switching between front and back cameras.
setProcessor(TrackProcessor<ProcessorOptions<TrackType>>? processor) → Future<void>
start() → Future<bool>
Start this Track if not started. Returns true if started, false if already started
inherited
stop() → Future<bool>
Stop this Track if not stopped. Returns true if stopped, false if already stopped
override
toString() → String
A string representation of this object.
inherited
unmute({bool stopOnMute = true}) → Future<bool>
Un-mutes this LocalTrack. This will re-start the sending of track data and notify the RemoteParticipant with TrackUnmutedEvent. Returns true if un-muted, false if unchanged.

Operators

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