Package im.zego.zegoexpress.constants
Enum ZegoStreamEvent
- java.lang.Object
-
- java.lang.Enum<ZegoStreamEvent>
-
- im.zego.zegoexpress.constants.ZegoStreamEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoStreamEvent>
public enum ZegoStreamEvent extends java.lang.Enum<ZegoStreamEvent>
Publish or play stream event
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PLAY_END
End of playing streamPLAY_FAIL
Failed to play stream for the first timePLAY_START
Start playing streamPLAY_SUCCESS
The first play stream was successfulPUBLISH_END
End of publishing streamPUBLISH_FAIL
Failed to publish stream for the first timePUBLISH_START
Start publishing streamPUBLISH_SUCCESS
The first publish stream was successfulRETRY_PLAY_FAIL
Failed to retry playing streamRETRY_PLAY_START
Start retrying playing streamRETRY_PLAY_SUCCESS
Retry playing stream successfullyRETRY_PUBLISH_FAIL
Failed to retry publishing streamRETRY_PUBLISH_START
Start retrying publishing streamRETRY_PUBLISH_SUCCESS
Retry publishing stream successfully
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoStreamEvent
getZegoStreamEvent(int value)
int
value()
static ZegoStreamEvent
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoStreamEvent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLISH_START
public static final ZegoStreamEvent PUBLISH_START
Start publishing stream
-
PUBLISH_SUCCESS
public static final ZegoStreamEvent PUBLISH_SUCCESS
The first publish stream was successful
-
PUBLISH_FAIL
public static final ZegoStreamEvent PUBLISH_FAIL
Failed to publish stream for the first time
-
RETRY_PUBLISH_START
public static final ZegoStreamEvent RETRY_PUBLISH_START
Start retrying publishing stream
-
RETRY_PUBLISH_SUCCESS
public static final ZegoStreamEvent RETRY_PUBLISH_SUCCESS
Retry publishing stream successfully
-
RETRY_PUBLISH_FAIL
public static final ZegoStreamEvent RETRY_PUBLISH_FAIL
Failed to retry publishing stream
-
PUBLISH_END
public static final ZegoStreamEvent PUBLISH_END
End of publishing stream
-
PLAY_START
public static final ZegoStreamEvent PLAY_START
Start playing stream
-
PLAY_SUCCESS
public static final ZegoStreamEvent PLAY_SUCCESS
The first play stream was successful
-
PLAY_FAIL
public static final ZegoStreamEvent PLAY_FAIL
Failed to play stream for the first time
-
RETRY_PLAY_START
public static final ZegoStreamEvent RETRY_PLAY_START
Start retrying playing stream
-
RETRY_PLAY_SUCCESS
public static final ZegoStreamEvent RETRY_PLAY_SUCCESS
Retry playing stream successfully
-
RETRY_PLAY_FAIL
public static final ZegoStreamEvent RETRY_PLAY_FAIL
Failed to retry playing stream
-
PLAY_END
public static final ZegoStreamEvent PLAY_END
End of playing stream
-
-
Method Detail
-
values
public static ZegoStreamEvent[] 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 (ZegoStreamEvent c : ZegoStreamEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoStreamEvent 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()
-
getZegoStreamEvent
public static ZegoStreamEvent getZegoStreamEvent(int value)
-
-