StreamPublishState

Publishing state.

Enumerations

PubStateIdle
0: Initial publishing state after joining the channel.
PubStateNoPublished
1: Publishing failed. Possible reasons:
  • The local user called muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media streams.
  • The local user called disableAudio or disableVideo to disable the local audio or video module.
  • The local user called enableLocalAudio(false) or enableLocalVideo(false) to disable local audio or video capture.
  • The local user's role is audience.
PubStatePublishing
2: Publishing in progress.
PubStatePublished
3: Publishing succeeded.