RemoteVideoTrack

class RemoteVideoTrack(name: String, val rtcTrack: VideoTrack, val autoManageVideo: Boolean = false, @Named(value = "dispatcher_default") dispatcher: CoroutineDispatcher, receiver: RtpReceiver) : VideoTrack

Constructors

Link copied to clipboard
constructor(name: String, rtcTrack: VideoTrack, autoManageVideo: Boolean = false, @Named(value = "dispatcher_default") dispatcher: CoroutineDispatcher, receiver: RtpReceiver)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val rtcTrack: VideoTrack
Link copied to clipboard
var sid: String?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun addRenderer(renderer: VideoSink)

If autoManageVideo is enabled, a VideoSinkVisibility should be passed, using ViewVisibility if using a traditional View layout, or ComposeVisibility if using Jetpack Compose.

fun addRenderer(renderer: VideoSink, visibility: VideoSinkVisibility)
Link copied to clipboard
open override fun dispose()

Disposes the track. LiveKit will generally take care of disposing tracks for you.

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.

Link copied to clipboard
open override fun removeRenderer(renderer: VideoSink)

Remove a previously added VideoSink.

Link copied to clipboard
open fun start()

Starts the track.

Link copied to clipboard
open override fun stop()

Stops the track.