ZegoPlayerState Constants Reference

Declared in ZegoExpressDefines.h

ZegoPlayerState

Playing stream status.

Definition

typedef NS_ENUM(NSUInteger, ZegoPlayerState ) {
   ZegoPlayerStateNoPlay = 0,
   ZegoPlayerStatePlayRequesting = 1,
   ZegoPlayerStatePlaying = 2,
};

Constants

ZegoPlayerStateNoPlay

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.

Declared In ZegoExpressDefines.h.

ZegoPlayerStatePlayRequesting

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.

Declared In ZegoExpressDefines.h.

ZegoPlayerStatePlaying

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.

Declared In ZegoExpressDefines.h.

Declared In

ZegoExpressDefines.h