On this page

ZegoPublisherState

ZegoPublisherState

Publish stream status.

Declared in ZegoExpressDefines.h

Properties

ZegoPublisherStateNoPublish

ZegoPublisherStateNoPublish
ZegoPublisherStateNoPublish=(0)

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.

ZegoPublisherStatePublishRequesting

ZegoPublisherStatePublishRequesting
ZegoPublisherStatePublishRequesting=(1)

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.

ZegoPublisherStatePublishing

ZegoPublisherStatePublishing
ZegoPublisherStatePublishing=(2)

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.

Previous

zegopublishchannel

Next

zegopublishertakesnapshotposition

On this page

Back to top