LocalScreencastTrack

class LocalScreencastTrack(source: VideoSource, mediaTrack: VideoTrack, context: Context, eglBase: EglBase, capturer: ScreenCapturerAndroid, val videoParameters: VideoParameters, callback: LocalScreencastTrack.ProjectionCallback) : VideoTrack, LocalTrack

A class representing a local screencast track.

It is responsible for managing an instance of ScreenCapturerAndroid that is responsible for capturing the entire device's screen and passing it to the WebRTC VideoTrack.

Constructors

Link copied to clipboard
constructor(source: VideoSource, mediaTrack: VideoTrack, context: Context, eglBase: EglBase, capturer: ScreenCapturerAndroid, videoParameters: VideoParameters, callback: LocalScreencastTrack.ProjectionCallback)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addRenderer(renderer: VideoSink)
Link copied to clipboard
open override fun enabled(): Boolean
Link copied to clipboard
open override fun id(): String
Link copied to clipboard
fun removeRenderer(renderer: VideoSink)
Link copied to clipboard
open override fun rtcTrack(): MediaStreamTrack
Link copied to clipboard
open override fun setEnabled(enabled: Boolean)
Link copied to clipboard
open override fun start()
Link copied to clipboard
suspend fun startForegroundService(notificationId: Int?, notification: Notification?)
Link copied to clipboard
open override fun stop()

Properties

Link copied to clipboard
val eglContext: EglBase.Context
Link copied to clipboard