AgoraChannelProfile 常量

Declared in AgoraEnumerates.h

AgoraChannelProfile

频道模式

Definition

typedef NS_ENUM(NSInteger, AgoraChannelProfile ) {
   AgoraChannelProfileCommunication = 0,
   AgoraChannelProfileLiveBroadcasting = 1,
   AgoraChannelProfileGame = 2,
};

Constants

AgoraChannelProfileCommunication

通信模式 (默认)

用于常见的一对一或群聊,频道中的任何用户可以自由说话。

Declared In AgoraEnumerates.h.

AgoraChannelProfileLiveBroadcasting

直播模式

直播模式有主播和观众两种用户角色,可以通过调用 setClientRole 设置。主播可收发语音和视频,但观众只能收,不能发。

Declared In AgoraEnumerates.h.

AgoraChannelProfileGame

游戏语音模式

该模式仅可在 Agora Gaming SDK 中使用。

频道内任何用户可自由发言。该模式下默认使用低功耗低码率的编解码器。

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h