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>
Video source types definition.
  • Enum Constant Details

    • VIDEO_SOURCE_CAMERA_PRIMARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_PRIMARY
      Video captured by the camera.
    • VIDEO_SOURCE_CAMERA_SECONDARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_SECONDARY
      Video captured by the secondary camera. Not supported by Android
    • VIDEO_SOURCE_SCREEN_PRIMARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_SCREEN_PRIMARY
      Video for screen sharing.
    • VIDEO_SOURCE_SCREEN_SECONDARY

      public static final Constants.VideoSourceType VIDEO_SOURCE_SCREEN_SECONDARY
      Video for secondary screen sharing. Not supported by Android
    • VIDEO_SOURCE_CUSTOM

      public static final Constants.VideoSourceType VIDEO_SOURCE_CUSTOM
      Video for external video frame
    • VIDEO_SOURCE_MEDIA_PLAYER

      public static final Constants.VideoSourceType VIDEO_SOURCE_MEDIA_PLAYER
      Video for media player sharing.
    • VIDEO_SOURCE_RTC_IMAGE_PNG

      public static final Constants.VideoSourceType VIDEO_SOURCE_RTC_IMAGE_PNG
      Video for png image. Not supported by Android
    • VIDEO_SOURCE_RTC_IMAGE_JPEG

      public static final Constants.VideoSourceType VIDEO_SOURCE_RTC_IMAGE_JPEG
      Video for png image. Not supported by Android
    • VIDEO_SOURCE_RTC_IMAGE_GIF

      public static final Constants.VideoSourceType VIDEO_SOURCE_RTC_IMAGE_GIF
      Video for png image. Not supported by Android
    • VIDEO_SOURCE_REMOTE

      public static final Constants.VideoSourceType VIDEO_SOURCE_REMOTE
      Remote video received from network. Not supported by Android
    • VIDEO_SOURCE_TRANSCODED

      public static final Constants.VideoSourceType VIDEO_SOURCE_TRANSCODED
      Video for transcoded. Not supported by Android
    • VIDEO_SOURCE_CAMERA_THIRD

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_THIRD
      Video captured by the third camera.
    • VIDEO_SOURCE_CAMERA_FOURTH

      public static final Constants.VideoSourceType VIDEO_SOURCE_CAMERA_FOURTH
      Video captured by the fourth camera.
    • VIDEO_SOURCE_SPEECH_DRIVEN

      public static final Constants.VideoSourceType VIDEO_SOURCE_SPEECH_DRIVEN
      Video for voice drive.
    • VIDEO_SOURCE_UNKNOWN

      public static final Constants.VideoSourceType VIDEO_SOURCE_UNKNOWN
      Not define.
  • 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)