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>
-
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) Automatic mode.2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth.1: Degrade resolution in order to maintain framerate.0: Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth.3: Reduces the video frame rate while maintaining the video resolution during video encoding under limited bandwidth. -
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) Automatic mode. The SDK will automatically select MAINTAIN_FRAMERATE, MAINTAIN_BALANCED or MAINTAIN_RESOLUTION based on the video scenario you set, in order to achieve the best overall quality of experience (QoE). -
MAINTAIN_QUALITY
0: Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized. -
MAINTAIN_FRAMERATE
1: Degrade resolution in order to maintain framerate. -
MAINTAIN_BALANCED
2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The MAINTAIN_BALANCED has a lower reduction than MAINTAIN_QUALITY and MAINTAIN_FRAMERATE, and this preference is suitable for scenarios where both smoothness and video quality are a priority. -
MAINTAIN_RESOLUTION
3: Reduces the video frame rate while maintaining the video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized. -
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()
-