Package io.agora.rtc2

Class EchoTestConfiguration

java.lang.Object
io.agora.rtc2.EchoTestConfiguration

public class EchoTestConfiguration extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The channel name that identifies each audio and video call loop.
    boolean
    Whether to enable the audio device for the loop test: - `true`: (Default) Enable the audio device.
    boolean
    Whether to enable the video device for the loop test: - `true`: (Default) Enable the video device.
    int
    Set the time interval or delay for returning the results of the audio and video loop test.
    The token used to secure the audio and video call loop test.
    SurfaceView
    The view used to render the local user's video.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    EchoTestConfiguration(SurfaceView view, boolean enableAudio, boolean enableVideo, String token, String channelId)
     
    EchoTestConfiguration(SurfaceView view, boolean enableAudio, boolean enableVideo, String token, String channelId, int intervalInSeconds)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • view

      public SurfaceView view
      The view used to render the local user's video. This parameter is only applicable to scenarios testing video devices, that is, when `enableVideo` is true.
    • enableAudio

      public boolean enableAudio
      Whether to enable the audio device for the loop test: - `true`: (Default) Enable the audio device. To test the audio device, set this parameter as true. - `false`: Disable the audio device.
    • enableVideo

      public boolean enableVideo
      Whether to enable the video device for the loop test: - `true`: (Default) Enable the video device. To test the video device, set this parameter as true. - `false`: Disable the video device.
    • token

      public String token
      The token used to secure the audio and video call loop test. If you do not enable App Certificate in Agora Console, you do not need to pass a value in this parameter; if you have enabled App Certificate in Agora Console, you must pass a token in this parameter; the `uid` used when you generate the token must be 0xFFFFFFFF, and the channel name used must be the channel name that identifies each audio and video call loop tested. For server-side token generation, see .
    • channelId

      public String channelId
      The channel name that identifies each audio and video call loop. To ensure proper loop test functionality, the channel name passed in to identify each loop test cannot be the same when users of the same project (App ID) perform audio and video call loop tests on different devices.
    • intervalInSeconds

      public int intervalInSeconds
      Set the time interval or delay for returning the results of the audio and video loop test. The value range is [2,10], in seconds, with the default value being 2 seconds. - For audio loop tests, the test results will be returned according to the time interval you set. - For video loop tests, the video will be displayed in a short time, after which the delay will gradually increase until it reaches the delay you set.
  • Constructor Details

    • EchoTestConfiguration

      public EchoTestConfiguration(SurfaceView view, boolean enableAudio, boolean enableVideo, String token, String channelId, int intervalInSeconds)
    • EchoTestConfiguration

      public EchoTestConfiguration(SurfaceView view, boolean enableAudio, boolean enableVideo, String token, String channelId)
    • EchoTestConfiguration

      public EchoTestConfiguration()