RemoteAudioState enum

用户订阅的远端音频流状态,及在 RemoteAudioStateChangeReason 中对应的原因

Inheritance
Available extensions

Values

stopped → const RemoteAudioState

远端音频流默认初始状态,该状态回调时机包括:

  • 本地用户停止接收远端音频流,对应原因是 localMuted
  • 远端用户停止发送音频流,对应原因是 remoteMuted
  • 远端用户离开房间,对应原因是 remoteOffline
starting → const RemoteAudioState

开始接收远端音频流首包

decoding → const RemoteAudioState

远端音频流正在解码,正常播放,该状态回调时机包括:

  • 成功解码远端音频首帧,对应原因是 localUnmuted
  • 网络由阻塞恢复正常,对应原因是 networkRecovery
  • 本地用户恢复接收远端音频流,对应原因是 localUnmuted
  • 远端用户恢复发送音频流,对应原因是 remoteUnmuted
frozen → const RemoteAudioState

远端音频流卡顿。

网络阻塞导致丢包率大于 40% 时回调该状态,对应原因是 networkCongestion

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<RemoteAudioState>
A constant List of the values in this enum, in order of their declaration.