Package im.zego.zegoexpress.constants
Enum ZegoDataRecordType
- java.lang.Object
-
- java.lang.Enum<ZegoDataRecordType>
-
- im.zego.zegoexpress.constants.ZegoDataRecordType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoDataRecordType>
public enum ZegoDataRecordType extends java.lang.Enum<ZegoDataRecordType>
Record type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIO_AND_VIDEO
record audio and video.DEFAULT
This field indicates that the Express-Audio SDK records audio by default, and the Express-Video SDK records audio and video by default.ONLY_AUDIO
only record audioONLY_VIDEO
only record video, Audio SDK and recording .aac format files are invalid.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoDataRecordType
getZegoDataRecordType(int value)
int
value()
static ZegoDataRecordType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoDataRecordType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ZegoDataRecordType DEFAULT
This field indicates that the Express-Audio SDK records audio by default, and the Express-Video SDK records audio and video by default. When recording files in .aac format, audio is also recorded by default.
-
ONLY_AUDIO
public static final ZegoDataRecordType ONLY_AUDIO
only record audio
-
ONLY_VIDEO
public static final ZegoDataRecordType ONLY_VIDEO
only record video, Audio SDK and recording .aac format files are invalid.
-
AUDIO_AND_VIDEO
public static final ZegoDataRecordType AUDIO_AND_VIDEO
record audio and video. Express-Audio SDK and .aac format files are recorded only audio.
-
-
Method Detail
-
values
public static ZegoDataRecordType[] 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 (ZegoDataRecordType c : ZegoDataRecordType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoDataRecordType 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()
-
getZegoDataRecordType
public static ZegoDataRecordType getZegoDataRecordType(int value)
-
-