Package io.agora.rtc2
Enum Class Constants.VideoSourceType
- All Implemented Interfaces:
Serializable,Comparable<Constants.VideoSourceType>,Constable
- Enclosing class:
- Constants
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription12: The fourth camera.0: (Default) The primary camera.1: The secondary camera.11: The third camera.4: A custom video source.5: The media player.9: One remote video acquired by the network.8: One GIF image.7: One JPEG image.6: One PNG image.2: The primary screen.3: The secondary screen.15: Video processed by the speech driven extension.10: One transcoded video source.100: An unknown video source. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.VideoSourceTypefromInt(int v) intgetValue()static intstatic Constants.VideoSourceTypeReturns the enum constant of this class with the specified name.static Constants.VideoSourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VIDEO_SOURCE_CAMERA_PRIMARY
0: (Default) The primary camera. -
VIDEO_SOURCE_CAMERA_SECONDARY
1: The secondary camera. -
VIDEO_SOURCE_SCREEN_PRIMARY
2: The primary screen. -
VIDEO_SOURCE_SCREEN_SECONDARY
3: The secondary screen. -
VIDEO_SOURCE_CUSTOM
4: A custom video source. -
VIDEO_SOURCE_MEDIA_PLAYER
5: The media player. -
VIDEO_SOURCE_RTC_IMAGE_PNG
6: One PNG image. -
VIDEO_SOURCE_RTC_IMAGE_JPEG
7: One JPEG image. -
VIDEO_SOURCE_RTC_IMAGE_GIF
8: One GIF image. -
VIDEO_SOURCE_REMOTE
9: One remote video acquired by the network. -
VIDEO_SOURCE_TRANSCODED
10: One transcoded video source. -
VIDEO_SOURCE_CAMERA_THIRD
11: The third camera. -
VIDEO_SOURCE_CAMERA_FOURTH
12: The fourth camera. -
VIDEO_SOURCE_SPEECH_DRIVEN
15: Video processed by the speech driven extension. -
VIDEO_SOURCE_UNKNOWN
100: An unknown video source.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
getValue
-
fromInt
-