AgoraClientRole Constants Reference

Declared in AgoraEnumerates.h

AgoraClientRole

直播场景里的用户角色

Definition

typedef NS_ENUM(NSInteger, AgoraClientRole ) {
   AgoraClientRoleBroadcaster = 1,
   AgoraClientRoleAudience = 2,
};

Constants

AgoraClientRoleBroadcaster

1: 主播。主播既可以发流也可以收流。 如果你在频道中设置该角色,SDK 会自动调用 muteLocalAudioStream(NO)muteLocalVideoStream(NO)

Declared In AgoraEnumerates.h.

AgoraClientRoleAudience

2: 观众。观众只能收流不能发流。 如果你在频道中设置该角色,SDK 会自动调用 muteLocalAudioStream(YES)muteLocalVideoStream(YES)

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h