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