stopVideoCapture method

Future<int?> stopVideoCapture()

@detail api @hiddensdk(audiosdk) @author zhangzhenyu.samuel @brief Disable internal video capture immediately. The default is off.
Internal video capture refers to: capturing video using the built-in module.
The local client will be informed via onVideoDeviceStateChanged{@link #IRTCEngineEventHandler#onVideoDeviceStateChanged} after stopping video capture by calling this API.
The remote clients in the room will be informed of the state change via onUserStopVideoCapture{@link #IRTCEngineEventHandler#onUserStopVideoCapture} after the visible client stops video capture by calling this API. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note - Call startVideoCapture {@link #RTCEngine#startVideoCapture} to enable the internal video capture. - Without calling this API the internal video capture will sustain until you destroy the engine instance.

Implementation

Future<int?> stopVideoCapture() async {
  $a() => ($instance as $p_a.RTCEngine).stopVideoCapture();
  $i() => ($instance as $p_i.ByteRTCEngine).stopVideoCapture();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}