StreamSubscribeState

Subscription state.

Enumerations

SubStateIdle
0: Initial subscription state after joining the channel.
SubStateNoSubscribed
1: Subscription failed. Possible reasons:
  • Remote user:
    • Called muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media streams.
    • Called disableAudio or disableVideo to disable the local audio or video module.
    • Called enableLocalAudio(false) or enableLocalVideo(false) to disable local audio or video capture.
    • User role is audience.
  • Local user called the following methods to stop receiving remote media streams:
    • Called muteRemoteAudioStream(true) or muteAllRemoteAudioStreams(true) to stop receiving remote audio streams.
    • Called muteRemoteVideoStream(true) or muteAllRemoteVideoStreams(true) to stop receiving remote video streams.
SubStateSubscribing
2: Subscribing in progress.
SubStateSubscribed
3: Remote stream received, subscription successful.