Package io.agora.rtc2

Enum Class Constants.AudioTrackType

java.lang.Object
java.lang.Enum<Constants.AudioTrackType>
io.agora.rtc2.Constants.AudioTrackType
All Implemented Interfaces:
Serializable, Comparable<Constants.AudioTrackType>, Constable
Enclosing class:
Constants

public static enum Constants.AudioTrackType extends Enum<Constants.AudioTrackType>
  • Enum Constant Details

    • AUDIO_TRACK_MIXABLE

      public static final Constants.AudioTrackType AUDIO_TRACK_MIXABLE
      0: Mixable audio tracks. This type of audio track supports mixing with other audio streams (such as audio streams captured by microphone) and playing locally or publishing to channels after mixing. The latency of mixable audio tracks is higher than that of direct audio tracks.
    • AUDIO_TRACK_DIRECT

      public static final Constants.AudioTrackType AUDIO_TRACK_DIRECT
      1: Direct audio tracks. This type of audio track will replace the audio streams captured by the microphone and does not support mixing with other audio streams. The latency of direct audio tracks is lower than that of mixable audio tracks.
  • Method Details

    • values

      public static Constants.AudioTrackType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Constants.AudioTrackType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public static int getValue(Constants.AudioTrackType type)