STREAM_PUBLISH_STATE

Publish state.

Enumerations

PUB_STATE_IDLE
(0): Initial publish state after joining the channel.
PUB_STATE_NO_PUBLISHED
(1): Failed to publish local stream. Possible reasons include:
  • Local user called muteLocalAudioStream(true) or muteLocalVideoStream(true) to stop sending local media stream;
  • Called disableAudio or disableVideo to disable local audio or video module;
  • Called enableLocalAudio(false) or enableLocalVideo(false) to disable local audio/video capture;
  • Local user role is audience.
PUB_STATE_PUBLISHING
(2): Publishing local stream.
PUB_STATE_PUBLISHED
(3): Local stream published successfully.