ScreenCaptureVideoSource
This API is in beta and subject to change.
Class that represents screen sharing video frame source for a call. The class may be used to send video frames from a screen capture session.
Inherits from VideoSource interface.
Methods
initialize
fun initialize(mediaProjectionIntent: Intent
): Unit
Retrieves the MediaProjection obtained from a successful screen capture request.
Parameters
mediaProjectionIntent:
Intent
The resulting data from android.app.Activity.onActivityResult
Returns
type:
Unit
setListener
fun setListener(listener: ): Unit
This API is in beta and subject to change.
Sets ScreenCaptureListener to monitor its events.
Parameters
listener:
OptionalThe ScreenCaptureListener instance
Returns
type:
Unit
Props
videoSource
val videoSource: VideoSource?
Returns
type:
VideoSource?