AgoraClientRole Constants Reference

Declared in AgoraEnumerates.h

AgoraClientRole

The role of a user in a interactive live streaming.

Definition

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

Constants

AgoraClientRoleBroadcaster

1: Host. A host can both send and receive streams. If you set this user role in the channel, the SDK automatically calls muteLocalAudioStream(NO) and muteLocalVideoStream(NO).

Declared In AgoraEnumerates.h.

AgoraClientRoleAudience

2: (Default) Audience. An audience member can only receive streams. If you set this user role in the channel, the SDK automatically calls muteLocalAudioStream(YES) and muteLocalVideoStream(YES).

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h