EchoTestConfiguration
Configuration for audio and video loop test.
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 for testing video devices. Make sure enableVideo is set to true.
- enableAudio
- Whether to enable the audio device:
- true: (Default) Enable the audio device. Set to true to test the audio device.
- false: Disable the audio device.
- enableVideo
- Whether to enable the video device. Video device detection is not currently supported. Set this parameter to false.
- token
- The token used to ensure the security of the audio and video loop test. If you have not enabled the App Certificate in the console, you do not need to pass a value for this parameter. If you have enabled the App Certificate in the console, you must pass in a token, and the
uidused when generating the token must be 0xFFFFFFFF, and the channel name must uniquely identify each loop test. For how to generate a token on the server, refer to Use Token Authentication. - channelId
- The channel name that identifies each audio and video loop test. To ensure the loop test functions properly, when users under the same project (App ID) perform loop tests on different devices, the channel names passed in must be different.
- intervalInSeconds
- Sets the interval or delay for returning the audio and video loop test results. Value range is [2,10] in seconds, default is 2 seconds.
- For audio loop tests, the test result is returned based on the interval you set.
- For video loop tests, the video is displayed briefly, then the delay gradually increases until it reaches the value you set.