AgoraChannelProfile Constants Reference

Declared in AgoraEnumerates.h

AgoraChannelProfile

Channel profile.

Definition

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

Constants

AgoraChannelProfileCommunication

0: (Default) Communication.

This profile applies to scenarios such as an audio call or video call, where all users can publish and subscribe to streams.

Declared In AgoraEnumerates.h.

AgoraChannelProfileLiveBroadcasting

1: Live interactive streaming.

In this profile, uses have roles, namely, host and audience (default). A host both publishes and subscribes to streams, while an audience subscribes to streams only. This profile applies to scenarios such as a chat room or interactive video streaming.

Declared In AgoraEnumerates.h.

AgoraChannelProfileGame

2: The Gaming profile. Agora recommends not using this profile.

This profile uses a codec with a lower bitrate and consumes less power. Applies to the gaming scenario, where all game players can talk freely.

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h

X
Is this page helpful?