Package im.zego.zegoexpress.constants
Enum ZegoEncodeProfile
- java.lang.Object
-
- java.lang.Enum<ZegoEncodeProfile>
-
- im.zego.zegoexpress.constants.ZegoEncodeProfile
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoEncodeProfile>
public enum ZegoEncodeProfile extends java.lang.Enum<ZegoEncodeProfile>
video encode profile.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASELINE
Baseline-level video encode specifications have low decoding consumption and poor picture effects.DEFAULT
The default video encode specifications, The default value is the video encoding specification at the Main level.HIGH
High-level video encode specifications, decoding consumption is higher than Main, the picture effect is better, generally used for broadcasting and video disc storage, high-definition TV.MAIN
Main-level video encode specifications, decoding consumption is slightly higher than Baseline, the picture effect is also better, generally used in mainstream consumer electronic products.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoEncodeProfile
getZegoEncodeProfile(int value)
int
value()
static ZegoEncodeProfile
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoEncodeProfile[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ZegoEncodeProfile DEFAULT
The default video encode specifications, The default value is the video encoding specification at the Main level.
-
BASELINE
public static final ZegoEncodeProfile BASELINE
Baseline-level video encode specifications have low decoding consumption and poor picture effects. They are generally used for low-level applications or applications that require additional fault tolerance.
-
MAIN
public static final ZegoEncodeProfile MAIN
Main-level video encode specifications, decoding consumption is slightly higher than Baseline, the picture effect is also better, generally used in mainstream consumer electronic products.
-
HIGH
public static final ZegoEncodeProfile HIGH
High-level video encode specifications, decoding consumption is higher than Main, the picture effect is better, generally used for broadcasting and video disc storage, high-definition TV.
-
-
Method Detail
-
values
public static ZegoEncodeProfile[] 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 (ZegoEncodeProfile c : ZegoEncodeProfile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoEncodeProfile 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
-
value
public int value()
-
getZegoEncodeProfile
public static ZegoEncodeProfile getZegoEncodeProfile(int value)
-
-