Package io.agora.rtc2
Enum Class Constants.MediaSourceType
- All Implemented Interfaces:
Serializable,Comparable<Constants.MediaSourceType>,Constable
- Enclosing class:
- Constants
The type of media device.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription0: The audio playback device.1: Microphone.6: Video captured by custom video source.7: Video for media player sharing.2: Video captured by primary camera.4: Video captured by primary screen capturer.11: Remote video received from network.10: Video for gif image.9: Video for jpeg image.8: Video for png image.3: Video captured by secondary camera.5: Video captured by secondary screen capturer.13: Video for voice drive.12: Video for transcoded.100: unknown media source. -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic Constants.MediaSourceTypeReturns the enum constant of this class with the specified name.static Constants.MediaSourceType[]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
-
AUDIO_PLAYOUT_SOURCE
0: The audio playback device. -
AUDIO_RECORDING_SOURCE
1: Microphone. -
PRIMARY_CAMERA_SOURCE
2: Video captured by primary camera. -
SECONDARY_CAMERA_SOURCE
3: Video captured by secondary camera. -
PRIMARY_SCREEN_SOURCE
4: Video captured by primary screen capturer. -
SECONDARY_SCREEN_SOURCE
5: Video captured by secondary screen capturer. -
CUSTOM_VIDEO_SOURCE
6: Video captured by custom video source. -
MEDIA_PLAYER_SOURCE
7: Video for media player sharing. -
RTC_IMAGE_PNG_SOURCE
8: Video for png image. -
RTC_IMAGE_JPEG_SOURCE
9: Video for jpeg image. -
RTC_IMAGE_GIF_SOURCE
10: Video for gif image. -
REMOTE_VIDEO_SOURCE
11: Remote video received from network. -
TRANSCODED_VIDEO_SOURCE
12: Video for transcoded. -
SPEECH_DRIVEN_VIDEO_SOURCE
13: Video for voice drive. -
UNKNOWN_MEDIA_SOURCE
100: unknown media 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
-