Package io.agora.rtc2

Enum Class Constants.AudioSourceType

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

public static enum Constants.AudioSourceType extends Enum<Constants.AudioSourceType>
Audio source types definition.
  • Enum Constant Details

    • AUDIO_SOURCE_MICROPHONE

      public static final Constants.AudioSourceType AUDIO_SOURCE_MICROPHONE
      Audio captured by the microphone.
    • AUDIO_SOURCE_CUSTOM

      public static final Constants.AudioSourceType AUDIO_SOURCE_CUSTOM
      Audio generated by the customer.
    • AUDIO_SOURCE_MEDIA_PLAYER

      public static final Constants.AudioSourceType AUDIO_SOURCE_MEDIA_PLAYER
      Audio of media player.
    • AUDIO_SOURCE_LOOPBACK_RECORDING

      public static final Constants.AudioSourceType AUDIO_SOURCE_LOOPBACK_RECORDING
      Audio of loopback recording.
    • AUDIO_SOURCE_MIXED_STREAM

      public static final Constants.AudioSourceType AUDIO_SOURCE_MIXED_STREAM
      Audio of mixed stream in local client.
    • AUDIO_SOURCE_REMOTE_USER

      public static final Constants.AudioSourceType AUDIO_SOURCE_REMOTE_USER
      Remote audio received of per user from network.
    • AUDIO_SOURCE_REMOTE_CHANNEL

      public static final Constants.AudioSourceType AUDIO_SOURCE_REMOTE_CHANNEL
      Remote audio received of per channel from network.
    • AUDIO_SOURCE_UNKNOWN

      public static final Constants.AudioSourceType AUDIO_SOURCE_UNKNOWN
      Not define.
  • Method Details

    • values

      public static Constants.AudioSourceType[] 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.AudioSourceType 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 int getValue()
    • getValue

      public static int getValue(Constants.AudioSourceType type)
    • fromInt

      public static Constants.AudioSourceType fromInt(int v)