stopScreenCapture [2/2]

Stops screen capture from the specified video source.

virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
Since
v4.2.0
Attention: This method applies to the macOS and Windows only.

Applicable scenarios

If you start screen capture from one or more screens by calling startScreenCapture [2/2], 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 VIDEO_SOURCE_TYPE.

Returns

  • 0: Success.
  • < 0: Failure.