StopScreenCapture [2/2]
Stops screen capture.
public abstract int StopScreenCapture(VIDEO_SOURCE_TYPE sourceType);
Details
After calling StartScreenCapture [2/2]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.
Attention:
- This method applies to the macOS and Windows only.
- If you call StartScreenCapture [1/2], StartScreenCaptureByWindowId, or StartScreenCaptureByDisplayId to start screen capure, Agora recommends that you call StopScreenCapture [1/2] instead to stop the capture.
Parameters
- sourceType
- The type of the video source. See VIDEO_SOURCE_TYPE.
Returns
- 0: Success.
- < 0: Failure.