AgoraStreamPublishState Constants Reference

Declared in AgoraEnumerates.h

AgoraStreamPublishState

The publishing state

Definition

typedef NS_ENUM(NSUInteger, AgoraStreamPublishState ) {
   AgoraStreamPublishIdle = 0,
   AgoraStreamPublishNoPublished = 1,
   AgoraStreamPublishPublishing = 2,
   AgoraStreamPublishPublished = 3,
};

Constants

AgoraStreamPublishIdle

0: The initial publishing state after joining the channel.

Declared In AgoraEnumerates.h.

AgoraStreamPublishNoPublished

1: Fails to publish the local stream. Possible reasons:

  • The local user calls muteLocalAudioStream(YES) or muteLocalVideoStream(YES) to stop sending local streams.
  • The local user calls disableAudio or disableVideo to disable the entire audio or video module.
  • The local user calls enableLocalAudio(NO) or enableLocalVideo(NO) to disable the local audio sampling or video capturing.
  • The role of the local user is AgoraClientRoleAudience.
  • Declared In AgoraEnumerates.h.

    AgoraStreamPublishPublishing

    2: Publishing.

    Declared In AgoraEnumerates.h.

    AgoraStreamPublishPublished

    3: Publishes successfully.

    Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h