EchoTestConfiguration

Configuration for audio and video loopback test.

public class EchoTestConfiguration
    {
        public view_t view;
        public bool enableAudio;
        public bool enableVideo;
        public string token;
        public string channelId;
        public int intervalInSeconds;
    };

Properties

view
The view used to render the local user's video. This parameter applies only to scenarios where video device testing is needed. Make sure enableVideo is set to true.
enableAudio
Whether to enable audio device:
  • true: (default) Enables the audio device. Set to true to test audio devices.
  • false: Disables the audio device.
enableVideo
Whether to enable video device. Video device detection is not supported yet. Set this parameter to false.
token
The token used to ensure the security of the audio and video loopback test. If you have not enabled the App Certificate in the console, you do not need to provide a value for this parameter. If you have enabled the App Certificate in the console, you must provide a token for this parameter, and the uid used when generating the token must be 0xFFFFFFFF. The channel name used must uniquely identify each audio and video loopback test. For how to generate tokens on the server, see Use Token Authentication.
channelId
The channel name that identifies each audio and video loopback test. To ensure the loopback test functions correctly, the channel names passed in by different terminal users under the same project (App ID) on different devices must be unique.
intervalInSeconds
Sets the interval or delay for returning the audio and video loopback test results. The value range is [2,10] seconds, with a default of 2 seconds.
  • For audio loopback tests, the results are returned based on the interval you set.
  • For video loopback tests, the video will display briefly, then the delay gradually increases until it reaches the set delay.