stopScreenCaptureBySourceType

Stops screen capture from the specified video source.

abstract stopScreenCaptureBySourceType(sourceType: VideoSourceType): number;

Applicable scenarios

If you start screen capture from one or more screens by calling startScreenCaptureBySourceType, 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 VideoSourceType.

Returns

  • 0: Success.
  • < 0: Failure.