EchoTestConfiguration
Used to configure audio and video call loopback tests.
public class EchoTestConfiguration {
public SurfaceView view = null;
public boolean enableAudio = true;
public boolean enableVideo = true;
public String token = null;
public String channelId = null;
public int intervalInSeconds = 2;
}
Properties
- view
- The view used to render the local user's video. This parameter only applies to scenarios where video devices are tested, i.e., it is effective only when enableVideo is true. See
SurfaceView. - enableAudio
- Whether to enable audio devices for loopback testing:
- true: (default) Enables audio devices. To test audio devices, set this parameter to true.
- false: Disables audio devices.
- enableVideo
- Whether to enable video devices for loopback testing:
- true: (default) Enables video devices. To test video devices, set this parameter to true.
- false: Disables video devices.
- token
- The dynamic key (Token) used to secure audio and video loopback tests. If you have not enabled App Certificate in the Agora Console, you can omit this parameter; if you have enabled App Certificate, you must provide the Token. The
uidused when generating the Token must be 0xFFFFFFFF, and the channel name used must match the one used to identify each loopback test. - channelId
- The channel name used to identify each audio and video loopback test. To ensure the loopback test functions properly, when users of the same project (App ID) perform loopback tests on different devices, the channel names passed in must not be the same.
- intervalInSeconds
- Sets the time interval or delay for returning audio and video loopback test results, in seconds. The valid range is [2, 10], and the default value is 2.
- For audio loopback tests, results are returned based on the set interval.
- For video loopback tests, the video is displayed briefly, then the delay gradually increases until it reaches the set value.