createScreencastTrack
fun createScreencastTrack( name: String = "", mediaProjectionPermissionResultData: Intent, options: LocalVideoTrackOptions = screenShareTrackCaptureDefaults.copy(), videoProcessor: VideoProcessor? = null, onStop: (Track) -> Unit): LocalScreencastVideoTrack
Creates a screencast video track.
Parameters
name
The name of the track.
mediaProjectionPermissionResultData
The resultData returned from launching MediaProjectionManager.createScreenCaptureIntent().
options
The capture options to use for this track, or Room.screenShareTrackCaptureDefaults if none is passed.
videoProcessor
A video processor to attach to this track that can modify the frames before publishing.