stopScreenCapture [2/2]
Stops screen capture.
virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
Details
- Since
- v4.2.0
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.