StreamSubscribeState
The subscribing state.
Enumerator
- subStateIdle
- 0: The initial publishing state after joining the channel.
- subStateNoSubscribed
-
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:
- subStateSubscribing
- 2: Subscribing.
- subStateSubscribed
- 3: The remote stream is received, and the subscription is successful.