RemoteVideoTrack

class RemoteVideoTrack(name: String, rtcTrack: VideoTrack, autoManageVideo: Boolean, @Named(value = dispatcher_defaultdispatcher: CoroutineDispatcher, receiver: RtpReceiver) : VideoTrack

Functions

addRenderer
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)
dispose
Link copied to clipboard
open override 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.
removeRenderer
Link copied to clipboard
open override fun removeRenderer(renderer: VideoSink)
start
Link copied to clipboard
open fun start()
stop
Link copied to clipboard
open override fun stop()

Properties

autoManageVideo
Link copied to clipboard
val autoManageVideo: Boolean = false
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: VideoTrack
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