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.