stopCameraCapture abstract method

Future<void> stopCameraCapture(
  1. VideoSourceType sourceType
)

Stops video capture using the camera.

After calling startCameraCapture to start one or more camera capture streams, you can call this method with sourceType to stop one or more camera video captures. On iOS, to disable multiple camera captures, you must call enableMultiCamera and set enabled to false after calling this method. If you are using local video mixing, stopping video capture from the first camera using this method will interrupt the local video mixing.

  • sourceType Type of video source. See VideoSourceType.

Returns 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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> stopCameraCapture(VideoSourceType sourceType);