Package com.alivc.live.pusher
Enum AlivcQualityModeEnum
- java.lang.Object
-
- java.lang.Enum<AlivcQualityModeEnum>
-
- com.alivc.live.pusher.AlivcQualityModeEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlivcQualityModeEnum>
public enum AlivcQualityModeEnum extends java.lang.Enum<AlivcQualityModeEnum>
视频质量模式
-
-
Enum Constant Summary
Enum Constants Enum Constant Description QM_CUSTOM
自定义模式 SDK会根据开发者设置的码率进行配置QM_FLUENCY_FIRST
流畅度优先模式 SDK内部会对码率参数进行配置,优先保障推流视频的流畅度QM_RESOLUTION_FIRST
清晰度优先模式 SDK内部会对码率参数进行配置,优先保障推流视频的清晰度
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getQualityMode()
static AlivcQualityModeEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlivcQualityModeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QM_RESOLUTION_FIRST
public static final AlivcQualityModeEnum QM_RESOLUTION_FIRST
清晰度优先模式 SDK内部会对码率参数进行配置,优先保障推流视频的清晰度
-
QM_FLUENCY_FIRST
public static final AlivcQualityModeEnum QM_FLUENCY_FIRST
流畅度优先模式 SDK内部会对码率参数进行配置,优先保障推流视频的流畅度
-
QM_CUSTOM
public static final AlivcQualityModeEnum QM_CUSTOM
自定义模式 SDK会根据开发者设置的码率进行配置
-
-
Method Detail
-
values
public static AlivcQualityModeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AlivcQualityModeEnum c : AlivcQualityModeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlivcQualityModeEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getQualityMode
public int getQualityMode()
-
-