On this page

ZegoPlayerState

ZegoPlayerState

Playing stream status.

Declared in ZegoExpressDefines.h

Properties

ZegoPlayerStateNoPlay

ZegoPlayerStateNoPlay
ZegoPlayerStateNoPlay=(0)

The state of the flow is not played, and it is in this state before the stream is played. If the steady flow anomaly occurs during the playing process, such as AppID or Token are incorrect, it will enter this state.

ZegoPlayerStatePlayRequesting

ZegoPlayerStatePlayRequesting
ZegoPlayerStatePlayRequesting=(1)

The state that the stream is being requested for playing. After the [startPlayingStream] function is successfully called, it will enter the state. 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.

ZegoPlayerStatePlaying

ZegoPlayerStatePlaying
ZegoPlayerStatePlaying=(2)

The state that the stream is being playing, entering the state indicates that the stream has been successfully played, and the user can communicate normally.

Previous

zegoplayermediaevent

Next

zegoprocesseddatausagetype

On this page

Back to top