EchoTestConfiguration

Configuration for audio and video loopback testing.

export class EchoTestConfiguration {

  view?: any;

  enableAudio?: boolean;

  enableVideo?: boolean;

  token?: string;

  channelId?: string;

  intervalInSeconds?: number;
}

Properties

view
The view used to render the local user's video. This parameter is only applicable when testing video devices. Make sure enableVideo is set to true.
enableAudio
Whether to enable audio devices:
  • true: (Default) Enable audio devices. Set to true to test audio devices.
  • false: Disable audio devices.
enableVideo
Whether to enable video devices. Video device testing is not supported currently. Set this parameter to false.
token
Token used to secure the audio and video loopback test. If you have not enabled App Certificate in the console, you do not need to provide this parameter. If you have enabled App Certificate, you must provide a Token, and the uid used to generate the Token must be 0xFFFFFFFF, and the channel name must uniquely identify each loopback test. For how to generate a Token on the server, see Token Authentication.
channelId
The channel name that identifies each audio and video loopback test. To ensure proper loopback testing, users under the same project (App ID) must use different channel names on different devices.
intervalInSeconds
Set the interval or delay for returning loopback test results. Value range: [2,10] seconds. Default is 2 seconds.
  • For audio loopback tests, results are returned based on the interval you set.
  • For video loopback tests, the video appears briefly, then the delay gradually increases until it reaches the set interval.