Agora RTC Objective-C API Reference
Refactor
|
Data Fields | |
bool | autoSubscribeAudio |
bool | autoSubscribeVideo |
bool | enableAudioRecordingOrPlayout |
int | maxSendBitrate |
int | minPort |
int | maxPort |
CLIENT_ROLE_TYPE | clientRoleType |
CHANNEL_PROFILE_TYPE | channelProfile |
bool | audioRecvEncodedFrame |
bool | audioRecvMediaPacket |
bool | videoRecvMediaPacket |
bool | isInteractiveAudience |
Configurations for an RTC connection.
Set these configurations when calling createRtcConnection.
|
inline |
bool autoSubscribeAudio |
Whether to subscribe to all audio tracks automatically.
true
: (Default) Subscribe to all audio tracks automatically.false
: Do not subscribe to any audio track automatically. bool autoSubscribeVideo |
Whether to subscribe to all video tracks automatically.
true
: (Default) Subscribe to all video tracks automatically.false
: Do not subscribe to any video track automatically. bool enableAudioRecordingOrPlayout |
Whether to enable audio recording or playout.
true
: Enables audio recording or playout. Use this option when you publish and mix audio tracks, or subscribe to one or multiple audio tracks and play audio.false
: Disables audio recording or playout. Use this option when you publish external audio frames without audio mixing, or you do not need audio devices to play audio. int maxSendBitrate |
The maximum sending bitrate.
int minPort |
The minimum port.
int maxPort |
The maximum port.
CLIENT_ROLE_TYPE clientRoleType |
The user role. For details, see CLIENT_ROLE_TYPE. The default user role is CLIENT_ROLE_AUDIENCE
.
CHANNEL_PROFILE_TYPE channelProfile |
The channel profile. For details, see CHANNEL_PROFILE_TYPE. The default channel profile is CHANNEL_PROFILE_LIVE_BROADCASTING
.
bool audioRecvEncodedFrame |
Determines whether to receive audio encoded frame or not.
bool audioRecvMediaPacket |
Determines whether to receive audio media packet or not.
bool videoRecvMediaPacket |
Determines whether to receive video media packet or not.
bool isInteractiveAudience |
This mode is only used for audience. In PK mode, client might join one channel as broadcaster, and join another channel as interactive audience to achieve low lentancy and smooth video from remote user.