Stops camera capture.

abstract stopCameraCapture(sourceType: VideoSourceType): number;


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.


The type of the video source. See VideoSourceType.


  • 0: Success.
  • < 0: Failure.