Agora Java API Reference for Android
|
#include <NGIAgoraRtcConnection.h>
Public Attributes | |
bool | autoSubscribeAudio |
bool | autoSubscribeVideo |
bool | enableAudioRecordingOrPlayout |
int | maxSendBitrate |
int | minPort |
int | maxPort |
AudioSubscriptionOptions | audioSubscriptionOptions |
CLIENT_ROLE_TYPE | clientRoleType |
CHANNEL_PROFILE_TYPE | channelProfile |
bool | audioRecvMediaPacket |
bool | videoRecvMediaPacket |
Configurations for an RTC connection.
Set these configurations when calling createRtcConnection.
bool agora::rtc::RtcConnectionConfiguration::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 agora::rtc::RtcConnectionConfiguration::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 agora::rtc::RtcConnectionConfiguration::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 agora::rtc::RtcConnectionConfiguration::maxSendBitrate |
The maximum sending bitrate.
int agora::rtc::RtcConnectionConfiguration::minPort |
The minimum port.
int agora::rtc::RtcConnectionConfiguration::maxPort |
The maximum port.
AudioSubscriptionOptions agora::rtc::RtcConnectionConfiguration::audioSubscriptionOptions |
The options for audio subscription. See AudioSubscriptionOptions.
CLIENT_ROLE_TYPE agora::rtc::RtcConnectionConfiguration::clientRoleType |
The user role. For details, see #CLIENT_ROLE_TYPE. The default user role is CLIENT_ROLE_AUDIENCE
.
CHANNEL_PROFILE_TYPE agora::rtc::RtcConnectionConfiguration::channelProfile |
The channel profile. For details, see #CHANNEL_PROFILE_TYPE. The default channel profile is CHANNEL_PROFILE_LIVE_BROADCASTING
.
bool agora::rtc::RtcConnectionConfiguration::audioRecvMediaPacket |
Determines whether to receive audio media packet or not.
bool agora::rtc::RtcConnectionConfiguration::videoRecvMediaPacket |
Determines whether to receive video media packet or not.