stopVideoCapture method

FutureOr<int> stopVideoCapture()

@detail api @hiddensdk(audiosdk) @author zhangzhenyu.samuel @brief Disables internal video capture immediately. The default is off.
Internal video capture refers to: use the RTC SDK built-in video capture module to capture.
The local client will be informed via rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error} after stopping video capture by calling this API.
The remote clients in the room will be informed of the state change via rtcEngine:onUserStopVideoCapture:info:{@link #ByteRTCEngineDelegate#rtcEngine:onUserStopVideoCapture:info} after the visible client stops video capture by calling this API. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - A call startVideoCapture{@link #ByteRTCEngine#startVideoCapture} to enable the internal video capture. - Without calling this API the internal video capture will sustain until you destroy the engine instance.

Implementation

FutureOr<int> stopVideoCapture() async {
  return await nativeCall('stopVideoCapture', []);
}