STREAM_SUBSCRIBE_STATE

Subscription state.

Enumerations

SUB_STATE_IDLE
(0): Initial subscription state after joining the channel.
SUB_STATE_NO_SUBSCRIBED
(1): Failed to subscribe to remote stream. Possible reasons include:
  • Remote user:
    • Called muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media stream.
    • Called disableAudio or disableVideo to disable local audio or video module.
    • Called enableLocalAudio(false) or enableLocalVideo(false) to disable local audio/video capture.
    • Role is audience.
  • Local user:
    • Called muteRemoteAudioStream(true) or muteAllRemoteAudioStreams(true) to stop receiving remote audio stream.
    • Called muteRemoteVideoStream(true) or muteAllRemoteVideoStreams(true) to stop receiving remote video stream.
SUB_STATE_SUBSCRIBING
(2): Subscribing to remote stream.
SUB_STATE_SUBSCRIBED
(3): Successfully received remote stream.