Rate this page:

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

Copy URL
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

Copy URL
fun setListener(listener: 

ScreenCaptureListener?

):

Unit

This API is in beta and subject to change.

Sets ScreenCaptureListener to monitor its events.

Parameters

Returns

  • type:

    Unit

Props

videoSource

Copy URL
val videoSource: 

VideoSource?

Returns

  • type:

    VideoSource?