StreamPublishState
The publishing state.
Enumerator
- pubStateIdle
- 0: The initial publishing state after joining the channel.
- pubStateNoPublished
- 
                    1: Fails to publish the local stream. Possible reasons:- The local user calls muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media streams.
- The local user calls disableAudio or disableVideo to disable the local audio or video module.
- The local user calls enableLocalAudio(false) or enableLocalVideo(false) to disable the local audio or video capture.
- The role of the local user is audience.
 
- The local user calls muteLocalAudioStream(
- pubStatePublishing
- 2: Publishing.
- pubStatePublished
- 3: Publishes successfully.