set Screen Share Enabled
suspend fun setScreenShareEnabled(enabled: Boolean, mediaProjectionPermissionResultData: Intent? = null)
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.
Parameters
media Projection Permission Result Data
The resultData returned from launching MediaProjectionManager.createScreenCaptureIntent().
See also
Throws
if attempting to enable screenshare without mediaProjectionPermissionResultData