ZegoPublisherState enum

推流状态

Inheritance
  • Object
  • Enum
  • ZegoPublisherState

Constructors

ZegoPublisherState()
const

Values

NoPublish → const ZegoPublisherState

未推流状态,在推流前处于该状态。如果推流过程出现稳态的异常,例如 AppID 或 Token 不正确,或者如果其他用户已经在推送流,推送相同流 ID 的流会失败,都会进入未推流状态

PublishRequesting → const ZegoPublisherState

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

Publishing → const ZegoPublisherState

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

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<ZegoPublisherState>
A constant List of the values in this enum, in order of their declaration.
[NoPublish, PublishRequesting, Publishing]