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>
The type of custom audio track
  • Enum Constant Details

    • AUDIO_TRACK_MIXABLE

      public static final Constants.AudioTrackType AUDIO_TRACK_MIXABLE
      0: Mixable audio track You can push more than one mixable Audio tracks into one RTC connection(channel id + uid), and SDK will mix these tracks into one audio track automatically. However, compare to direct audio track, mixable track might cause extra 30ms+ delay.
    • AUDIO_TRACK_DIRECT

      public static final Constants.AudioTrackType AUDIO_TRACK_DIRECT
      1: Direct audio track You can only push one direct (non-mixable) audio track into one RTC connection(channel id + uid). Compare to mixable stream, you can have lower lantency using direct audio track.
  • 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)