StreamSubscribeState enum

The subscribing state.

Inheritance

Constructors

StreamSubscribeState()
const

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.
  • 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.
Subscribing → const StreamSubscribeState

Subscribing.

Subscribed → const StreamSubscribeState

Subscribes to and receives the remote stream successfully.

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