stopCameraCapture

Stops camera capture.

Future<void> stopCameraCapture(VideoSourceType sourceType);

Details

After calling startCameraCapture to start capturing video through one or more cameras, you can call this method and set the sourceType parameter to stop the capture from the specified cameras.

Note: On the iOS platform, if you want to disable multi-camera capture, you need to call enableMultiCamera after calling this method and set enabled to false.
Attention: If you are using the local video mixing function, calling this method can cause the local video mixing to be interrupted.

Parameters

sourceType
The type of the video source. See VideoSourceType.

Exceptions

When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.