Package im.zego.zegoexpress.constants
Enum ZegoPlayerMediaEvent
- java.lang.Object
-
- java.lang.Enum<ZegoPlayerMediaEvent>
-
- im.zego.zegoexpress.constants.ZegoPlayerMediaEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoPlayerMediaEvent>
public enum ZegoPlayerMediaEvent extends java.lang.Enum<ZegoPlayerMediaEvent>
Media event when playing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIO_BREAK_OCCUR
Audio stuck event when playingAUDIO_BREAK_RESUME
Audio stuck event recovery when playingVIDEO_BREAK_OCCUR
Video stuck event when playingVIDEO_BREAK_RESUME
Video stuck event recovery when playing
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoPlayerMediaEvent
getZegoPlayerMediaEvent(int value)
int
value()
static ZegoPlayerMediaEvent
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoPlayerMediaEvent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUDIO_BREAK_OCCUR
public static final ZegoPlayerMediaEvent AUDIO_BREAK_OCCUR
Audio stuck event when playing
-
AUDIO_BREAK_RESUME
public static final ZegoPlayerMediaEvent AUDIO_BREAK_RESUME
Audio stuck event recovery when playing
-
VIDEO_BREAK_OCCUR
public static final ZegoPlayerMediaEvent VIDEO_BREAK_OCCUR
Video stuck event when playing
-
VIDEO_BREAK_RESUME
public static final ZegoPlayerMediaEvent VIDEO_BREAK_RESUME
Video stuck event recovery when playing
-
-
Method Detail
-
values
public static ZegoPlayerMediaEvent[] 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 (ZegoPlayerMediaEvent c : ZegoPlayerMediaEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoPlayerMediaEvent 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()
-
getZegoPlayerMediaEvent
public static ZegoPlayerMediaEvent getZegoPlayerMediaEvent(int value)
-
-