ZegoPlayerState enum

拉流状态

Inheritance
  • Object
  • Enum
  • ZegoPlayerState

Constructors

ZegoPlayerState()
const

Values

NoPlay → const ZegoPlayerState

未拉流状态,在拉流前处于该状态。如果拉流过程出现稳态的异常,例如 AppID 或 Token 不正确,都会进入未拉流状态

PlayRequesting → const ZegoPlayerState

正在请求拉流状态,拉流操作执行成功后会进入正在请求拉流状态,通常通过该状态进行应用界面的展示。如果因为网络质量不佳产生的中断,SDK 会进行内部重试,也会回到正在请求拉流状态

Playing → const ZegoPlayerState

正在拉流状态,进入该状态表明拉流已经成功,用户可以正常通信

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]