Package io.agora.rtc2.video
Enum Class VideoEncoderConfiguration.COMPRESSION_PREFERENCE
java.lang.Object
java.lang.Enum<VideoEncoderConfiguration.COMPRESSION_PREFERENCE>
io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE
- All Implemented Interfaces:
Serializable,Comparable<VideoEncoderConfiguration.COMPRESSION_PREFERENCE>,Constable
- Enclosing class:
- VideoEncoderConfiguration
public static enum VideoEncoderConfiguration.COMPRESSION_PREFERENCE
extends Enum<VideoEncoderConfiguration.COMPRESSION_PREFERENCE>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription-1: (Default) Automatic mode.0: Low latency preference.1: High quality preference. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PREFER_COMPRESSION_AUTO
-1: (Default) Automatic mode. The SDK will automatically select PREFER_LOW_LATENCY or PREFER_QUALITY based on the video scenario you set to achieve the best user experience. -
PREFER_LOW_LATENCY
0: Low latency preference. The SDK compresses video frames to reduce latency. This preference is suitable for scenarios where smoothness is prioritized and reduced video quality is acceptable. -
PREFER_QUALITY
1: High quality preference. The SDK compresses video frames while maintaining video quality. This preference is suitable for scenarios where video quality is prioritized.
-
-
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()
-