Package io.agora.rtc2

Enum Class Constants.VideoSourceType

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

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

    • VIDEO_SOURCE_CAMERA_PRIMARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_PRIMARY
      0: (Default) The primary camera.
    • VIDEO_SOURCE_CAMERA_SECONDARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_SECONDARY
      1: The secondary camera.
    • VIDEO_SOURCE_SCREEN_PRIMARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_SCREEN_PRIMARY
      2: The primary screen.
    • VIDEO_SOURCE_SCREEN_SECONDARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_SCREEN_SECONDARY
      3: The secondary screen.
    • VIDEO_SOURCE_CUSTOM

      public static final Constants.VideoSourceType VIDEO_SOURCE_CUSTOM
      4: A custom video source.
    • VIDEO_SOURCE_MEDIA_PLAYER

      public static final Constants.VideoSourceType VIDEO_SOURCE_MEDIA_PLAYER
      5: The media player.
    • VIDEO_SOURCE_RTC_IMAGE_PNG

      public static final Constants.VideoSourceType VIDEO_SOURCE_RTC_IMAGE_PNG
      6: One PNG image.
    • VIDEO_SOURCE_RTC_IMAGE_JPEG

      public static final Constants.VideoSourceType VIDEO_SOURCE_RTC_IMAGE_JPEG
      7: One JPEG image.
    • VIDEO_SOURCE_RTC_IMAGE_GIF

      public static final Constants.VideoSourceType VIDEO_SOURCE_RTC_IMAGE_GIF
      8: One GIF image.
    • VIDEO_SOURCE_REMOTE

      public static final Constants.VideoSourceType VIDEO_SOURCE_REMOTE
      9: One remote video acquired by the network.
    • VIDEO_SOURCE_TRANSCODED

      public static final Constants.VideoSourceType VIDEO_SOURCE_TRANSCODED
      10: One transcoded video source.
    • VIDEO_SOURCE_CAMERA_THIRD

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_THIRD
      11: The third camera.
    • VIDEO_SOURCE_CAMERA_FOURTH

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_FOURTH
      12: The fourth camera.
    • VIDEO_SOURCE_SPEECH_DRIVEN

      public static final Constants.VideoSourceType VIDEO_SOURCE_SPEECH_DRIVEN
      15: Video processed by the speech driven extension.
    • VIDEO_SOURCE_UNKNOWN

      public static final Constants.VideoSourceType VIDEO_SOURCE_UNKNOWN
      100: An unknown video source.
  • Method Details

    • values

      public static Constants.VideoSourceType[] 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.VideoSourceType 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.VideoSourceType type)
    • fromInt

      public static Constants.VideoSourceType fromInt(int v)