stopScreenCaptureBySourceType
Stops screen capture.
abstract stopScreenCaptureBySourceType(sourceType: VideoSourceType): number;
Details
After calling startScreenCaptureBySourceTypeto 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:
- If you call startScreenCaptureByWindowId or startScreenCaptureByDisplayId to start screen capture, Agora recommends that you call stopScreenCapture to stop the capture and do not use this one.
Parameters
- sourceType
- The type of the video source. See VideoSourceType.
Returns
- 0: Success.
- < 0: Failure.