create Screencast Track
fun createScreencastTrack(mediaProjectionPermission: Intent, videoParameters: VideoParameters, metadata: Metadata, onEnd: () -> Unit? = null): LocalScreencastTrack
Creates a screen track recording the entire device's screen.
The method requires a media projection permission to be able to start the recording. The client assumes that the intent is valid.
Return
an instance of the screencast track
Parameters
media Projection Permission
a valid media projection permission intent that can be used to starting a screen capture
video Parameters
a set of target parameters of the screen capture such as resolution, frame rate or simulcast configuration
metadata
the metadata that will be sent to the Membrane RTC Engine for media negotiation
on End
callback that will be invoked once the screen capture ends