StreamSubscribeState enum
The subscribing state.
@since v3.1.2.
Values
- Idle → const StreamSubscribeState
-
The initial subscribing state after joining the channel.
- NoSubscribed → const StreamSubscribeState
-
Fails to subscribe to the remote stream. Possible reasons:
- The remote user:
- Calls RtcEngine.muteLocalAudioStream (
true
) to stop sending local streams. - The local user calls RtcEngine.disableAudio or RtcEngine.disableVideo to disable the entire audio or video module.
- The local user calls RtcEngine.enableLocalAudio (
false
) or RtcEngine.enableLocalVideo (false
) to disable the local audio sampling or video capturing. - The role of the local user is
Audience
.
- Calls RtcEngine.muteLocalAudioStream (
- The local user calls the following methods to stop receiving remote streams:
- Calls RtcEngine.muteRemoteAudioStream (
true
), RtcEngine.muteAllRemoteAudioStreams (true
), or RtcEngine.setDefaultMuteAllRemoteAudioStreams (true
) to stop receiving remote audio streams. - Calls RtcEngine.muteRemoteVideoStream (
true
), RtcEngine.muteAllRemoteVideoStreams (true
), or RtcEngine.setDefaultMuteAllRemoteVideoStreams (true
) to stop receiving remote video streams.
- Calls RtcEngine.muteRemoteAudioStream (
- The remote user:
- Subscribing → const StreamSubscribeState
-
Subscribing.
- Subscribed → const StreamSubscribeState
-
Subscribes to and receives the remote stream successfully.
Properties
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<
StreamSubscribeState> - A constant List of the values in this enum, in order of their declaration.