STREAM_PUBLISH_STATE
The publishing state.
Enumerator
- PUB_STATE_IDLE
- 0: The initial publishing state after joining the channel.
- PUB_STATE_NO_PUBLISHED
-
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(
- PUB_STATE_PUBLISHING
- 2: Publishing.
- PUB_STATE_PUBLISHED
- 3: Publishes successfully.