Package im.zego.zegoexpress.constants
Enum ZegoStreamAlignmentMode
- java.lang.Object
-
- java.lang.Enum<ZegoStreamAlignmentMode>
-
- im.zego.zegoexpress.constants.ZegoStreamAlignmentMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoStreamAlignmentMode>
public enum ZegoStreamAlignmentMode extends java.lang.Enum<ZegoStreamAlignmentMode>
Stream alignment mode.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoStreamAlignmentMode
getZegoStreamAlignmentMode(int value)
int
value()
static ZegoStreamAlignmentMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoStreamAlignmentMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ZegoStreamAlignmentMode NONE
Disable stream alignment.
-
TRY
public static final ZegoStreamAlignmentMode TRY
Streams should be aligned as much as possible, call the [setStreamAlignmentProperty] function to enable the stream alignment of the push stream network time alignment of the specified channel.
-
-
Method Detail
-
values
public static ZegoStreamAlignmentMode[] 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 (ZegoStreamAlignmentMode c : ZegoStreamAlignmentMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoStreamAlignmentMode 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()
-
getZegoStreamAlignmentMode
public static ZegoStreamAlignmentMode getZegoStreamAlignmentMode(int value)
-
-