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
simulcast Config
: simulcast configuration. By default simulcast is disabled.
egl Base
: an instance of EglBase used for rendering the video