create

fun create(context: Context, factory: PeerConnectionFactory, eglBase: EglBase, mediaProjectionPermission: Intent, videoParameters: VideoParameters, onStopped: (track: LocalScreencastTrack) -> Unit): LocalScreencastTrack

Creates a screencast track.

Parameters

context

: context of the current application

factory

: an instance of PeerConnectionFactory used for creating video sources and tracks

simulcastConfig

: simulcast configuration. By default simulcast is disabled.

eglBase

: an instance of EglBase used for rendering the video