stopScreenCaptureBySourceType

Stops screen capture from the specified video source.

Future<void> stopScreenCaptureBySourceType(VideoSourceType sourceType);
Attention: This method applies to the macOS and Windows only.

Applicable scenarios

If you start screen capture from one or more screens by calling startScreenCaptureBySourceType, you need to call this method to stop screen capture, specifying the screen through the sourceType parameter.

Call timing

You can call this method either before or after joining a channel.

Restrictions

None.

Parameters

sourceType
The type of the video source. See VideoSourceType.

Exceptions

When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.