set Screen Share Enabled
suspend fun setScreenShareEnabled(enabled: Boolean, screenCaptureParams: ScreenCaptureParams? = null): Boolean
If set to enabled, creates and publishes a screenshare video track.
If set to disabled, unpublishes the screenshare video track.
This will use capture and publish default options from Room.
For screenshare audio, a ScreenAudioCapturer can be used.
Return
true if the change was successful, or false if it failed.
Parameters
screen Capture Params
When enabling the screenshare, this must be provided with ScreenCaptureParams.mediaProjectionPermissionResultData containing resultData returned from launching MediaProjectionManager.createScreenCaptureIntent().
See also
Throws
if attempting to enable screenshare without mediaProjectionPermissionResultData