订阅状态。
@since v4.0.0。
Constants
-
Idle → const StreamSubscribeState
加入频道后的初始订阅状态。@JsonValue(0)
const StreamSubscribeState(0)
-
NoSubscribed → const StreamSubscribeState
订阅失败。可能是因为:远端用户:调用 RtcEngine.muteLocalAudioStream (
true
) 或 RtcEngine.muteLocalVideoStream (true
) 停止发送本地媒体流。调用 RtcEngine.disableAudio 或 RtcEngine.disableVideo 关闭本地音频或视频模块。调用 RtcEngine.enableLocalAudio (
false
) 或 RtcEngine.enableLocalVideo (false
) 关闭本地音频或视频采集。用户角色为观众。本地用户调用以下方法停止接收远端媒体流:调用 RtcEngine.muteRemoteAudioStream (true
)、RtcEngine.muteAllRemoteAudioStreams (true
) 或 RtcEngine.setDefaultMuteAllRemoteAudioStreams (true
) 停止接收远端音频流。调用 RtcEngine.muteRemoteVideoStream (
true
)、RtcEngine.muteAllRemoteVideoStreams (true
) 或 RtcEngine.setDefaultMuteAllRemoteVideoStreams (true
) 停止接收远端视频流。@JsonValue(1)const StreamSubscribeState(1)
-
Subscribed → const StreamSubscribeState
收到了远端流,订阅成功。@JsonValue(3)
const StreamSubscribeState(3)
-
Subscribing → const StreamSubscribeState
正在订阅。@JsonValue(2)
const StreamSubscribeState(2)
-
values → const List<StreamSubscribeState>
A constant List of the values in this enum, in order of their declaration.
const List<StreamSubscribeState>
Properties
-
The hash code for this object. [...]read-only, inherited
-
index → int
The integer index of this enum.final
-
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
-
Returns a string representation of this object.override
Operators
-
operator ==(Object other) → bool
The equality operator. [...]inherited