EchoTestConfiguration

Used to configure audio and video call loopback testing.

struct EchoTestConfiguration {
  view_t view;
  bool enableAudio;
  bool enableVideo;
  const char* token;
  const char* channelId;
  int intervalInSeconds;
};

Properties

view
View used to render the local user's video. This parameter takes effect only when enableVideo is true.
enableAudio
Whether to enable audio device for loopback test:
  • true: (Default) Enable audio device. Set this to true to test the audio device.
  • false: Do not enable audio device.
enableVideo
Whether to enable video device for loopback test:
  • true: (Default) Enable video device. Set this to true to test the video device.
  • false: Do not enable video device.
token
Dynamic key Token used to secure the audio and video call loopback test. If you have not enabled App Certificate in the Agora Console, you do not need to pass this parameter. If you have enabled App Certificate, you must pass the Token. The uid used to generate the Token must be 0xFFFFFFFF, and the channel name must be the one used to identify each loopback test.
channelId
Channel name used to identify each audio and video call loopback test. To ensure the loopback test functions properly, users under the same project (App ID) on different devices must use different channel names for the loopback test.
intervalInSeconds
Time interval or delay for returning the loopback test result, in seconds. Value range is [2, 10], default is 2 seconds.
  • For audio loopback testing, results are returned at the set interval.
  • For video loopback testing, the video is displayed briefly, then the delay gradually increases until it reaches the set delay time.