public static enum Constants.StreamFallbackOptions extends java.lang.Enum<Constants.StreamFallbackOptions>
Enum Constant and Description |
---|
STREAM_FALLBACK_OPTION_AUDIO_ONLY
2: Under poor network conditions, the SDK may receive agora::rtc::VIDEO_STREAM_LOW first,
then agora::rtc::VIDEO_STREAM_LAYER_1 to agora::rtc::VIDEO_STREAM_LAYER_6 if the related layer
exists.
|
STREAM_FALLBACK_OPTION_DISABLED
0: No fallback operation to a lower resolution stream when the network
condition is poor.
|
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1
3~8: If the receiver SDK uses
setRemoteSubscribeFallbackOption , 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. |
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 |
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW
1: (Default) Under poor network conditions, the receiver SDK will receive
agora::rtc::VIDEO_STREAM_LOW.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static Constants.StreamFallbackOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.StreamFallbackOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_DISABLED
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW
setRemoteSubscribeFallbackOption
.
Nothing happens when you set this in setLocalPublishFallbackOption
.public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_AUDIO_ONLY
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1
setRemoteSubscribeFallbackOption
, 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.public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5
public static final Constants.StreamFallbackOptions STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6
public static Constants.StreamFallbackOptions[] values()
for (Constants.StreamFallbackOptions c : Constants.StreamFallbackOptions.values()) System.out.println(c);
public static Constants.StreamFallbackOptions valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()