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>
  • Enum Constant Details

    • AUDIO_SOURCE_MICROPHONE

      public static final Constants.AudioSourceType AUDIO_SOURCE_MICROPHONE
      0: (Default) Microphone.
    • AUDIO_SOURCE_CUSTOM

      public static final Constants.AudioSourceType AUDIO_SOURCE_CUSTOM
      1: Custom audio stream.
    • AUDIO_SOURCE_MEDIA_PLAYER

      public static final Constants.AudioSourceType AUDIO_SOURCE_MEDIA_PLAYER
      2: Media player.
    • AUDIO_SOURCE_LOOPBACK_RECORDING

      public static final Constants.AudioSourceType AUDIO_SOURCE_LOOPBACK_RECORDING
      3: System audio stream captured during screen sharing.
    • AUDIO_SOURCE_MIXED_STREAM

      public static final Constants.AudioSourceType AUDIO_SOURCE_MIXED_STREAM
      4: Audio of mixed stream from the local client.
    • AUDIO_SOURCE_REMOTE_USER

      public static final Constants.AudioSourceType AUDIO_SOURCE_REMOTE_USER
      5: Audio stream from a specified remote user.
    • AUDIO_SOURCE_REMOTE_CHANNEL

      public static final Constants.AudioSourceType AUDIO_SOURCE_REMOTE_CHANNEL
      6: Mixed audio streams from all users in the current channel.
    • AUDIO_SOURCE_UNKNOWN

      public static final Constants.AudioSourceType AUDIO_SOURCE_UNKNOWN
      100: An unknown audio source.
  • 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)