StreamSubscribeState enum Null safety
The subscribing state.
Constants
- Idle → const StreamSubscribeState
-
The initial subscribing state after joining the channel.
@JsonValue(0)const StreamSubscribeState(0)
- 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 (
@JsonValue(1)const StreamSubscribeState(1)
- The remote user:
- Subscribed → const StreamSubscribeState
-
Subscribes to and receives the remote stream successfully.
@JsonValue(3)const StreamSubscribeState(3)
- Subscribing → const StreamSubscribeState
-
Subscribing.
@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
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