RemoteVideoState enum

远端视频流状态,及在 RemoteVideoStateChangeReason 中对应的原因

Inheritance

Constructors

RemoteVideoState()
const

Values

stopped → const RemoteVideoState

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

  • 本地用户停止接收远端视频流,对应错误码 localMuted
  • 远端用户停止发送视频流,对应错误码 remoteMuted
  • 远端用户离开房间,对应错误码 remoteOffline
starting → const RemoteVideoState

本地用户已接收远端视频首包

收到远端视频首包时回调该状态,对应错误码 localUnmuted

decoding → const RemoteVideoState

远端视频流正在解码,正常播放

该状态回调时机包括:

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

远端视频流卡顿

网络阻塞、丢包率大于 40% 时回调该状态,对应错误码 networkCongestion

failed → const RemoteVideoState

远端视频流播放失败

如果内部处理远端视频流失败,则会回调该方法,对应错误码 internal

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