stopScreenCaptureBySourceType abstract method

Future<void> stopScreenCaptureBySourceType(
  1. VideoSourceType sourceType
)

Stops screen capture.

After calling startScreenCaptureBySourceType to start capturing video from one or more screens, you can call this method and set the sourceType parameter to stop capturing from the specified screens. This method applies to the macOS and Windows only. If you call startScreenCapture, startScreenCaptureByWindowId, or startScreenCaptureByDisplayId to start screen capure, Agora recommends that you call stopScreenCapture instead to stop the capture.

  • sourceType The type of the video source. See VideoSourceType.

Returns 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.

Implementation

Future<void> stopScreenCaptureBySourceType(VideoSourceType sourceType);