Package io.agora.rtc2
Enum Class Constants.StreamFallbackOptions
- All Implemented Interfaces:
Serializable,Comparable<Constants.StreamFallbackOptions>,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 ConstantDescription2: When the network conditions are weak, try to receive the low-quality video stream first.0: No fallback processing is performed on audio and video streams, the quality of the audio and video streams cannot be guaranteed.3~8: If the receiver SDK usessetRemoteSubscribeFallbackOption, it will receive one of the streams from agora::rtc::VIDEO_STREAM_LAYER_1 to agora::rtc::VIDEO_STREAM_LAYER_6 if the related layer exists when the network condition is poor.1: Only receive low-quality (low resolution, low bitrate) video stream. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the enum constant of this class with the specified name.static Constants.StreamFallbackOptions[]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
-
STREAM_FALLBACK_OPTION_DISABLED
0: No fallback processing is performed on audio and video streams, the quality of the audio and video streams cannot be guaranteed. -
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW
1: Only receive low-quality (low resolution, low bitrate) video stream. -
STREAM_FALLBACK_OPTION_AUDIO_ONLY
2: When the network conditions are weak, try to receive the low-quality video stream first. If the video cannot be displayed due to extremely weak network environment, then fall back to receiving audio-only stream. -
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1
3~8: If the receiver SDK usessetRemoteSubscribeFallbackOption, it will receive one of the streams from agora::rtc::VIDEO_STREAM_LAYER_1 to agora::rtc::VIDEO_STREAM_LAYER_6 if the related layer exists when the network condition is poor. The lower bound of fallback depends on the STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_X. -
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2
-
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3
-
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4
-
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5
-
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6
-
-
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()
-