stopCameraCapture
Stops camera capture.
virtual int stopCameraCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
Details
- Since
- v4.2.0
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 VIDEO_SOURCE_TYPE.
Returns
- 0: Success.
- < 0: Failure.