ZegoPlayerState enum

Playing stream status.

Inheritance
  • Object
  • Enum
  • ZegoPlayerState

Constructors

ZegoPlayerState()
const

Values

NoPlay → const ZegoPlayerState

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.

PlayRequesting → const ZegoPlayerState

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.

Playing → const ZegoPlayerState

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.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ZegoPlayerState>
A constant List of the values in this enum, in order of their declaration.
[NoPlay, PlayRequesting, Playing]