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) 停止发送本地媒体流。
- 本地用户调用 disableAudio 或 disableVideo 关闭本地音频或视频模块。
- 本地用户调用 enableLocalAudio(NO) 或 enableLocalVideo(NO) 关闭本地音频或视频采集。
- 本地用户角色为观众。
Declared In
AgoraEnumerates.h
. AgoraStreamPublishPublishing
-
2: 正在发布。
Declared In
AgoraEnumerates.h
. AgoraStreamPublishPublished
-
3: 发布成功。
Declared In
AgoraEnumerates.h
.
Declared In
AgoraEnumerates.h