STREAM_SUBSCRIBE_STATE
The subscribing state.
Enumerator
- SUB_STATE_IDLE
- 0: The initial publishing state after joining the channel.
- SUB_STATE_NO_SUBSCRIBED
-
1: Fails to subscribe to the remote stream. Possible reasons:
- The remote user:
- Calls MuteLocalAudioStream(
true
) or MuteLocalVideoStream(true
) to stop sending local media stream. - Calls DisableAudio or DisableVideo to disable the local audio or video module.
- Calls EnableLocalAudio(false) or EnableLocalVideo(false) to disable local audio or video capture.
- The role of the remote user is audience.
- Calls MuteLocalAudioStream(
- The local user calls the following methods to stop receiving remote streams:
- Call MuteRemoteAudioStream(true) or MuteAllRemoteAudioStreams(true) to stop receiving the remote audio stream.
- Call MuteRemoteVideoStream(true) or MuteAllRemoteVideoStreams(true) to stop receiving the remote video stream.
- The remote user:
- SUB_STATE_SUBSCRIBING
- 2: Subscribing.
- SUB_STATE_SUBSCRIBED
- 3: The remote stream is received, and the subscription is successful.