stopHardwareEchoDetection method

Future<int?> stopHardwareEchoDetection()

@detail api @author zhangcaining @brief 停止通话前回声检测 @return 方法调用结果:
- 0: 成功。 - -1:失败。 @note - 关于开启通话前回声检测,参看 startHardwareEchoDetection{@link #RTCEngine#startHardwareEchoDetection} 。 - 建议在收到 onHardwareEchoDetectionResult{@link #IRTCEngineEventHandler#onHardwareEchoDetectionResult} 通知的检测结果后,调用本接口停止检测。 - 在用户进入房间前结束回声检测,释放对音频设备的占用,以免影响正常通话。

Implementation

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

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