Package com.alivc.live.pusher
Enum AlivcVideoEncodeGopEnum
- java.lang.Object
-
- java.lang.Enum<AlivcVideoEncodeGopEnum>
-
- com.alivc.live.pusher.AlivcVideoEncodeGopEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlivcVideoEncodeGopEnum>
public enum AlivcVideoEncodeGopEnum extends java.lang.Enum<AlivcVideoEncodeGopEnum>
视频编码GOP
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGop()
static AlivcVideoEncodeGopEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlivcVideoEncodeGopEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GOP_ONE
public static final AlivcVideoEncodeGopEnum GOP_ONE
Gop 为1秒
-
GOP_TWO
public static final AlivcVideoEncodeGopEnum GOP_TWO
Gop 为2秒
-
GOP_THREE
public static final AlivcVideoEncodeGopEnum GOP_THREE
Gop 为3秒
-
GOP_FOUR
public static final AlivcVideoEncodeGopEnum GOP_FOUR
Gop 为4秒
-
GOP_FIVE
public static final AlivcVideoEncodeGopEnum GOP_FIVE
Gop 为5秒
-
-
Method Detail
-
values
public static AlivcVideoEncodeGopEnum[] 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 (AlivcVideoEncodeGopEnum c : AlivcVideoEncodeGopEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlivcVideoEncodeGopEnum 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
-
getGop
public int getGop()
-
-