startEchoTest method

  1. @Deprecated('Not Support Yet.')
Future<int?> startEchoTest({
  1. required EchoTestConfig config,
  2. required int delayTime,
})

Implementation

@Deprecated('Not Support Yet.')
Future<int?> startEchoTest({
  required EchoTestConfig config,
  required int delayTime,
}) async {
  return 0;
  // final String id = globalGetViewByViewId(genEchoTestViewId());
  // final view = await byteRTCHelper.getView(id);
  // final $p.EchoTestConfig echoTestConfig = $p.EchoTestConfig(
  //   userId: config.userId,
  //   roomId: config.roomId,
  //   token: config.token,
  //   enableAudio: config.enableAudio,
  //   enableVideo: config.enableVideo,
  //   audioReportInterval: config.audioReportInterval,
  //   view: view,
  // );
  // if (view == null) {
  //   debugPrint('EchoTest view is not established yet!');
  //   return Future.value(-1);
  // }
  // if (Platform.isAndroid) {
  //   return ($instance as $a.RTCEngine).startEchoTest(
  //     unpackObject<$a.EchoTestConfig>(echoTestConfig),
  //     delayTime,
  //   );
  // } else if (Platform.isIOS) {
  //   return ($instance as $i.ByteRTCEngine).startEchoTest(
  //     unpackObject<$i.ByteRTCEchoTestConfig>(echoTestConfig),
  //     delayTime,
  //   );
  // } else {
  //   throw UnsupportedError(
  //     'Not Support Platform ${Platform.operatingSystem}',
  //   );
  // }
}