AgoraStreamPublishState Constants Reference

Declared in AgoraEnumerates.h

AgoraStreamPublishState

发布状态

Definition

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

Constants

AgoraStreamPublishIdle

0: 加入频道后的初始发布状态。

Declared In AgoraEnumerates.h.

AgoraStreamPublishNoPublished

1: 发布失败。可能是因为:

  • 本地用户调用 muteLocalAudioStream(YES)muteLocalVideoStream(YES) 停止发送本地媒体流。
  • 本地用户调用 disableAudiodisableVideo 关闭本地音频或视频模块。
  • 本地用户调用 enableLocalAudio(NO)enableLocalVideo(NO) 关闭本地音频或视频采集。
  • 本地用户角色为观众。
  • Declared In AgoraEnumerates.h.

    AgoraStreamPublishPublishing

    2: 正在发布。

    Declared In AgoraEnumerates.h.

    AgoraStreamPublishPublished

    3: 发布成功。

    Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h