Package im.zego.zegoexpress.constants
Enum ZegoStreamResourceMode
- java.lang.Object
-
- java.lang.Enum<ZegoStreamResourceMode>
-
- im.zego.zegoexpress.constants.ZegoStreamResourceMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoStreamResourceMode>
public enum ZegoStreamResourceMode extends java.lang.Enum<ZegoStreamResourceMode>
Stream Resource Mode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoStreamResourceMode
getZegoStreamResourceMode(int value)
int
value()
static ZegoStreamResourceMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoStreamResourceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ZegoStreamResourceMode DEFAULT
Default mode. The SDK will automatically select the streaming resource according to the cdnConfig parameters set by the player config and the ready-made background configuration.
-
ONLY_CDN
public static final ZegoStreamResourceMode ONLY_CDN
Playing stream only from CDN.
-
ONLY_L3
public static final ZegoStreamResourceMode ONLY_L3
Playing stream only from L3.
-
ONLY_RTC
public static final ZegoStreamResourceMode ONLY_RTC
Playing stream only from RTC.
-
CDN_PLUS
@Deprecated public static final ZegoStreamResourceMode CDN_PLUS
Deprecated.Legacy CDN Plus
-
CUSTOM
public static final ZegoStreamResourceMode CUSTOM
Custom mode. The SDK selects the streaming resource based on the customResourceConfig parameter of the streaming settings.
-
-
Method Detail
-
values
public static ZegoStreamResourceMode[] 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 (ZegoStreamResourceMode c : ZegoStreamResourceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoStreamResourceMode 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()
-
getZegoStreamResourceMode
public static ZegoStreamResourceMode getZegoStreamResourceMode(int value)
-
-