Package im.zego.zegoexpress.constants
Enum ZegoPublisherState
- java.lang.Object
-
- java.lang.Enum<ZegoPublisherState>
-
- im.zego.zegoexpress.constants.ZegoPublisherState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoPublisherState>
public enum ZegoPublisherState extends java.lang.Enum<ZegoPublisherState>
Publish stream status.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_PUBLISH
The state is not published, and it is in this state before publishing the stream.PUBLISH_REQUESTING
The state that it is requesting to publish the stream after the [startPublishingStream] function is successfully called.PUBLISHING
The state that the stream is being published, entering the state indicates that the stream has been successfully published, and the user can communicate normally.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoPublisherState
getZegoPublisherState(int value)
int
value()
static ZegoPublisherState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoPublisherState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_PUBLISH
public static final ZegoPublisherState NO_PUBLISH
The state is not published, and it is in this state before publishing the stream. If a steady-state exception occurs in the publish process, such as AppID or Token are incorrect, or if other users are already publishing the stream, there will be a failure and enter this state.
-
PUBLISH_REQUESTING
public static final ZegoPublisherState PUBLISH_REQUESTING
The state that it is requesting to publish the stream after the [startPublishingStream] function is successfully called. The UI is usually displayed through this state. If the connection is interrupted due to poor network quality, the SDK will perform an internal retry and will return to the requesting state.
-
PUBLISHING
public static final ZegoPublisherState PUBLISHING
The state that the stream is being published, entering the state indicates that the stream has been successfully published, and the user can communicate normally.
-
-
Method Detail
-
values
public static ZegoPublisherState[] 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 (ZegoPublisherState c : ZegoPublisherState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoPublisherState 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()
-
getZegoPublisherState
public static ZegoPublisherState getZegoPublisherState(int value)
-
-