Package io.agora.rtc2.video
Enum Class VideoEncoderConfiguration.DEGRADATION_PREFERENCE
java.lang.Object
java.lang.Enum<VideoEncoderConfiguration.DEGRADATION_PREFERENCE>
io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE
- All Implemented Interfaces:
Serializable,Comparable<VideoEncoderConfiguration.DEGRADATION_PREFERENCE>,Constable
- Enclosing class:
- VideoEncoderConfiguration
public static enum VideoEncoderConfiguration.DEGRADATION_PREFERENCE
extends Enum<VideoEncoderConfiguration.DEGRADATION_PREFERENCE>
The video encoding degradation preference under limited bandwidth.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription4: Disabled VQC adjustion.-1: (Default) SDK uses option MAINTAIN_RESOLUTION By default.2: Maintain resolution in video quality control process.1: Degrade resolution in order to maintain framerate.0: (Deprecated) Degrade the frame rate and keep resolution to guarantee the video quality.3: Degrade framerate in order to maintain resolution. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MAINTAIN_AUTO
-1: (Default) SDK uses option MAINTAIN_RESOLUTION By default. But If user set video scenario through API setVideoScenario or network state has changed, sdk may change this parameter between MAINTAIN_FRAMERATEćMAINTAIN_BALANCED and MAINTAIN_RESOLUTION * automatically to get the best QOE. -
MAINTAIN_QUALITY
0: (Deprecated) Degrade the frame rate and keep resolution to guarantee the video quality. -
MAINTAIN_FRAMERATE
1: Degrade resolution in order to maintain framerate. -
MAINTAIN_BALANCED
2: Maintain resolution in video quality control process. Under limited bandwidth, degrade video quality first and then degrade frame rate. -
MAINTAIN_RESOLUTION
3: Degrade framerate in order to maintain resolution. -
DISABLED
4: Disabled VQC adjustion.
-
-
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()
-