RTCConnectionState enum

SDK 与 RTC 服务器连接状态

Inheritance
Available extensions

Values

disconnected → const RTCConnectionState

连接断开,且断开时长超过 12s,SDK 会自动重连

connecting → const RTCConnectionState

首次请求建立连接,正在连接中

connected → const RTCConnectionState

首次连接成功

reconnecting → const RTCConnectionState

涵盖以下情况:

  • 首次连接时,10 秒内未连接成功;
  • 连接成功后,断连 10 秒。自动重连中。
reconnected → const RTCConnectionState

连接断开后,重连成功

lost → const RTCConnectionState

处于 disconnected 状态超过 10 秒,且期间重连未成功,SDK 仍将继续尝试重连

failed → const RTCConnectionState

连接失败,服务端状态异常

SDK 不会自动重连,请重新进房,或联系技术支持

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<RTCConnectionState>
A constant List of the values in this enum, in order of their declaration.