LocalAudioTrack

class LocalAudioTrack(name: String, mediaTrack: AudioTrack) : AudioTrack

Represents a local audio track (generally using the microphone as input).

This class should not be constructed directly, but rather through LocalParticipant

Constructors

LocalAudioTrack
Link copied to clipboard
fun LocalAudioTrack(name: String, mediaTrack: AudioTrack)

Types

Companion
Link copied to clipboard
object Companion

Functions

dispose
Link copied to clipboard
open fun dispose()
getRTCStats
Link copied to clipboard
suspend fun getRTCStats(): RTCStatsReport?
Return the RTCStatsReport for this track, or null if none is available.
fun getRTCStats(callback: RTCStatsCollectorCallback)
Calls the callback with the RTCStatsReport for this track, or null if none is available.
start
Link copied to clipboard
open fun start()
stop
Link copied to clipboard
open fun stop()

Properties

enabled
Link copied to clipboard
var enabled: Boolean
events
Link copied to clipboard
val events: EventListenable<TrackEvent>
kind
Link copied to clipboard
var kind: Track.Kind
name
Link copied to clipboard
var name: String
rtcTrack
Link copied to clipboard
open override val rtcTrack: AudioTrack
The underlying WebRTC audio track.
sid
Link copied to clipboard
var sid: String? = null
statsGetter
Link copied to clipboard
var statsGetter: RTCStatsGetter? = null
streamState
Link copied to clipboard
var streamState: Track.StreamState

Sources

SDK source
Link copied to clipboard