RTCConnectionState enum Null safety

SDK 与 RTC 服务器连接状态

Constants

connected → const RTCConnectionState

首次连接成功

const RTCConnectionState(2)
connecting → const RTCConnectionState

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

const RTCConnectionState(1)
disconnected → const RTCConnectionState

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

const RTCConnectionState(0)
failed → const RTCConnectionState

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

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

const RTCConnectionState(6)
lost → const RTCConnectionState

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

const RTCConnectionState(5)
reconnected → const RTCConnectionState

连接断开后,重连成功

const RTCConnectionState(4)
reconnecting → const RTCConnectionState

涵盖以下情况:

  • 首次连接时,10 秒内未连接成功;
  • 连接成功后,断连 10 秒。自动重连中。
const RTCConnectionState(3)
values → const List<RTCConnectionState>

A constant List of the values in this enum, in order of their declaration.

const List<RTCConnectionState>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

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