startEchoTest method

  1. @override
Future<void> startEchoTest({
  1. int? intervalInSeconds,
  2. EchoTestConfiguration? config,
})

Starts an audio call test.

In the audio call test, you record your voice. If the recording plays back within the set time interval, the audio devices and the network connection are working properly.

Note

Parameter intervalInSeconds The time interval (s) between when you speak and when the recording plays back.

Parameter config The configuration of the audio and video call loop test. See EchoTestConfiguration.

Implementation

@override
Future<void> startEchoTest(
    {int? intervalInSeconds, EchoTestConfiguration? config}) {
  assert(intervalInSeconds == null || config == null,
      'Only need one of the params');
  return _invokeMethod('startEchoTest', {
    'intervalInSeconds': intervalInSeconds,
    'config': config?.toJson(),
  });
}