startEchoTest abstract method

Future<void> startEchoTest(
  1. EchoTestConfiguration config
)

Starts an audio and video call loop test.

To test whether the user's local stream sending and receiving works properly, you can call this method to perform an audio and video call loop test, which checks whether the system's audio and video devices and the user's uplink and downlink networks are functioning correctly. After the test starts, the user needs to speak or face the camera. The audio or video will play back after about 2 seconds. If audio plays back correctly, it indicates that the system audio devices and the user's uplink and downlink networks are working properly; if video plays back correctly, it indicates that the system video devices and the user's uplink and downlink networks are working properly. When calling this method in a channel, ensure that no audio or video stream is being published. After calling this method, you must call stopEchoTest to end the test. Otherwise, the user cannot perform another loop test or join a channel. In a live broadcast scenario, only hosts can call this method.

  • config Configuration for the audio and video call loop test. See EchoTestConfiguration.

Returns 0: Success. < 0: Failure. See Error Codes for details and resolution suggestions.

Implementation

Future<void> startEchoTest(EchoTestConfiguration config);