RemoteAudioTrack

class RemoteAudioTrack(name: String, rtcTrack: AudioTrack, receiver: RtpReceiver) : AudioTrack

Functions

addSink
Link copied to clipboard
fun addSink(sink: AudioTrackSink)
Adds a sink that receives the audio bytes and related information for this audio track.
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.
removeSink
Link copied to clipboard
fun removeSink(sink: AudioTrackSink)
Removes a previously added sink.
start
Link copied to clipboard
open fun start()
stop
Link copied to clipboard
open fun stop()

Properties

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