ZegoPublisherState Constants Reference
Declared in | ZegoExpressDefines.h |
---|
ZegoPublisherState
Publish stream status.
Definition
typedef NS_ENUM(NSUInteger, ZegoPublisherState ) {
ZegoPublisherStateNoPublish = 0,
ZegoPublisherStatePublishRequesting = 1,
ZegoPublisherStatePublishing = 2,
};
Constants
ZegoPublisherStateNoPublish
-
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.
Declared In
ZegoExpressDefines.h
. ZegoPublisherStatePublishRequesting
-
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.
Declared In
ZegoExpressDefines.h
. ZegoPublisherStatePublishing
-
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.
Declared In
ZegoExpressDefines.h
.
Declared In
ZegoExpressDefines.h