Package im.zego.zegoexpress.constants
Enum ZegoScenario
- java.lang.Object
-
- java.lang.Enum<ZegoScenario>
-
- im.zego.zegoexpress.constants.ZegoScenario
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoScenario>
public enum ZegoScenario extends java.lang.Enum<ZegoScenario>
Room scenario.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROADCAST
Available since: 3.0.0.COMMUNICATION
Deprecated.Legacy communication scenarioDEFAULT
Available since: 3.0.0.GENERAL
Deprecated.Legacy general scenarioHIGH_QUALITY_CHATROOM
Available since: 3.0.0.HIGH_QUALITY_VIDEO_CALL
Available since: 3.0.0.KARAOKE
Available since: 3.0.0.LIVE
Deprecated.Legacy live broadcast scenarioSTANDARD_CHATROOM
Available since: 3.0.0.STANDARD_VIDEO_CALL
Available since: 3.0.0.STANDARD_VOICE_CALL
Available since: 3.3.0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoScenario
getZegoScenario(int value)
int
value()
static ZegoScenario
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoScenario[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL
@Deprecated public static final ZegoScenario GENERAL
Deprecated.Legacy general scenario
-
COMMUNICATION
@Deprecated public static final ZegoScenario COMMUNICATION
Deprecated.Legacy communication scenario
-
LIVE
@Deprecated public static final ZegoScenario LIVE
Deprecated.Legacy live broadcast scenario
-
DEFAULT
public static final ZegoScenario DEFAULT
Available since: 3.0.0. Description: The default (generic) scenario. If none of the following scenarios conform to your actual application scenario, this default scenario can be used.
-
STANDARD_VIDEO_CALL
public static final ZegoScenario STANDARD_VIDEO_CALL
Available since: 3.0.0. Description: Standard video call scenario, it is suitable for one-to-one video call scenarios.
-
HIGH_QUALITY_VIDEO_CALL
public static final ZegoScenario HIGH_QUALITY_VIDEO_CALL
Available since: 3.0.0. Description: High quality video call scenario, it is similar to the standard video call scenario, but this scenario uses a higher video frame rate, bit rate, and resolution (540p) by default, which is suitable for video call scenario with high image quality requirements.
-
STANDARD_CHATROOM
public static final ZegoScenario STANDARD_CHATROOM
Available since: 3.0.0. Description: Standard chatroom scenario, suitable for multi-person pure voice calls (low data usage). Note: On the ExpressVideo SDK, the camera is not enabled by default in this scenario.
-
HIGH_QUALITY_CHATROOM
public static final ZegoScenario HIGH_QUALITY_CHATROOM
Available since: 3.0.0. Description: High quality chatroom scenario, it is similar to the standard chatroom scenario, but this scenario uses a higher audio bit rate than the standard chatroom scenario by default. It is suitable for multi-person pure voice call scenarios with high requirements on sound quality. Note: On the ExpressVideo SDK, the camera is not enabled by default in this scenario.
-
BROADCAST
public static final ZegoScenario BROADCAST
Available since: 3.0.0. Description: Live broadcast scenario, it is suitable for one-to-many live broadcast scenarios such as shows, games, e-commerce, and large educational classes. The audio and video quality, fluency, and compatibility have been optimized. Note: Even in live broadcast scenarios, the SDK has no business "roles" (such as anchors and viewers), and all users in the room can publish and play streams.
-
KARAOKE
public static final ZegoScenario KARAOKE
Available since: 3.0.0. Description: Karaoke (KTV) scenario, it is suitable for real-time chorus and online karaoke scenarios, and has optimized delay, sound quality, ear return, echo cancellation, etc., and also ensures accurate alignment and ultra-low delay when multiple people chorus.
-
STANDARD_VOICE_CALL
public static final ZegoScenario STANDARD_VOICE_CALL
Available since: 3.3.0. Description: Standard voice call scenario, it is suitable for one-to-one video or voice call scenarios. Note: On the ExpressVideo SDK, the camera is not enabled by default in this scenario.
-
-
Method Detail
-
values
public static ZegoScenario[] 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 (ZegoScenario c : ZegoScenario.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoScenario 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()
-
getZegoScenario
public static ZegoScenario getZegoScenario(int value)
-
-