Data Structures | |
class | AAudioDeviceManager |
class | AParameter |
struct | AudioVolumeInfo |
class | AVideoDeviceManager |
struct | BeautyOptions |
struct | CameraCapturerConfiguration |
class | IAudioDeviceCollection |
class | IAudioDeviceManager |
struct | InjectStreamConfig |
class | IPacketObserver |
class | IRtcEngine |
class | IRtcEngineEventHandler |
class | IRtcEngineParameter |
class | IVideoDeviceCollection |
class | IVideoDeviceManager |
struct | LastmileProbeConfig |
struct | LastmileProbeOneWayResult |
struct | LastmileProbeResult |
struct | LiveTranscoding |
struct | LocalVideoStats |
struct | PublisherConfiguration |
struct | Rect |
struct | Rectangle |
struct | RemoteAudioStats |
struct | RemoteVideoStats |
struct | RtcEngineContext |
class | RtcEngineParameters |
struct | RtcImage |
struct | RtcStats |
struct | ScreenCaptureParameters |
struct | TranscodingUser |
struct | VideoCanvas |
struct | VideoCompositingLayout |
struct | VideoDimensions |
struct | VideoEncoderConfiguration |
Typedefs | |
typedef unsigned int | uid_t |
typedef void * | view_t |
typedef struct agora::rtc::TranscodingUser | TranscodingUser |
typedef struct agora::rtc::RtcImage | RtcImage |
typedef struct agora::rtc::LiveTranscoding | LiveTranscoding |
typedef struct agora::rtc::Rect | Rect |
Variables | |
const int | STANDARD_BITRATE = 0 |
const int | COMPATIBLE_BITRATE = -1 |
const int | DEFAULT_MIN_BITRATE = -1 |
typedef unsigned int agora::rtc::uid_t |
typedef void* agora::rtc::view_t |
typedef struct agora::rtc::TranscodingUser agora::rtc::TranscodingUser |
The video properties of the user displaying the video in the CDN live. Agora supports a maximum of 17 transcoding users in a CDN streaming channel.
typedef struct agora::rtc::RtcImage agora::rtc::RtcImage |
Image properties.
The properties of the watermark and background images.
typedef struct agora::rtc::LiveTranscoding agora::rtc::LiveTranscoding |
A struct for managing CDN live audio/video transcoding settings.
typedef struct agora::rtc::Rect agora::rtc::Rect |
DEPRECATED Definition of the rectangular region.
The states of the local user's audio mixing file.
Enumerator | |
---|---|
AUDIO_MIXING_STATE_PLAYING | 710: The audio mixing file is playing. |
AUDIO_MIXING_STATE_PAUSED | 711: The audio mixing file pauses playing. |
AUDIO_MIXING_STATE_STOPPED | 713: The audio mixing file stops playing. |
AUDIO_MIXING_STATE_FAILED | 714: An exception occurs when playing the audio mixing file. See AUDIO_MIXING_ERROR_TYPE. |
The error codes of the local user's audio mixing file.
Media device types.
Network quality types.
Video display modes.
DEPRECATED Video profiles.
Audio profiles.
Sets the sample rate, bitrate, encoding mode, and the number of channels:
Enumerator | |
---|---|
AUDIO_PROFILE_DEFAULT | 0: Default audio profile.
|
AUDIO_PROFILE_SPEECH_STANDARD | 1: A sample rate of 32 kHz, audio encoding, mono, and a bitrate of up to 18 Kbps. |
AUDIO_PROFILE_MUSIC_STANDARD | 2: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 48 Kbps. |
AUDIO_PROFILE_MUSIC_STANDARD_STEREO | 3: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 56 Kbps. |
AUDIO_PROFILE_MUSIC_HIGH_QUALITY | 4: A sample rate of 48 kHz, music encoding, mono, and a bitrate of up to 128 Kbps. |
AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO | 5: A sample rate of 48 kHz, music encoding, stereo, and a bitrate of up to 192 Kbps. |
AUDIO_PROFILE_IOT | 6: A sample rate of 16 kHz, audio encoding, mono, and Acoustic Echo Cancellation (AES) enabled. |
AUDIO_PROFILE_NUM |
Audio application scenarios.
Channel profiles.
Enumerator | |
---|---|
CHANNEL_PROFILE_COMMUNICATION | 0: Communication. This is used in one-on-one calls or group calls, where all users in the channel can talk freely. |
CHANNEL_PROFILE_LIVE_BROADCASTING | 1: Live Broadcast. Host and audience roles that can be set by calling the setClientRole method. The host sends and receives voice, while the audience receives voice only with the sending function disabled. |
CHANNEL_PROFILE_GAME | 2: Gaming.
Any user in the channel can talk freely. This mode uses the codec with low-power consumption and low bitrate by default. |
Reasons for a user being offline.
States of importing an external video stream in a live broadcast.
Use modes of the onRecordAudioFrame callback.
Enumerator | |
---|---|
RAW_AUDIO_FRAME_OP_MODE_READ_ONLY | 0: Read-only mode: Users only read the AudioFrame data without modifying anything. For example, when users acquire the data with the Agora SDK, then push the RTMP streams. |
RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY | 1: Write-only mode: Users replace the AudioFrame data with their own data and pass the data to the SDK for encoding. For example, when users acquire the data. |
RAW_AUDIO_FRAME_OP_MODE_READ_WRITE | 2: Read and write mode: Users read the data from AudioFrame, modify it, and then play it. For example, when users have their own sound-effect processing module and perform some voice pre-processing, such as a voice change. |
Video codec profile types.
Audio equalization band frequencies.
Audio reverberation types.
Local voice changer options.
Local voice reverberation presets.
Video output orientation modes.
Video degradation preferences when the bandwidth is a constraint.
Stream fallback options.
Enumerator | |
---|---|
STREAM_FALLBACK_OPTION_DISABLED | 0: No fallback behavior for the local/remote video stream when the uplink/downlink network conditions are poor. The quality of the stream is not guaranteed. |
STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW | 1: Under poor downlink network conditions, the remote video stream, to which you subscribe, falls back to the low-stream (low resolution and low bitrate) video. You can set this option only in the setRemoteSubscribeFallbackOption method. Nothing happens when you set this in the setLocalPublishFallbackOption method. |
STREAM_FALLBACK_OPTION_AUDIO_ONLY | 2: Under poor uplink network conditions, the locally published video stream falls back to audio only. Under poor downlink network conditions, the remote video stream, to which you subscribe, first falls back to the low-stream (low resolution and low bitrate) video; and then to an audio-only stream if the network conditions worsen. |
Camera capture preferences.
Enumerator | |
---|---|
CAPTURER_OUTPUT_PREFERENCE_AUTO | 0: (Default) self-adapts the camera output parameters to the system performance and network conditions to balance CPU consumption and video preview quality. |
CAPTURER_OUTPUT_PREFERENCE_PERFORMANCE | 2: Prioritizes the system performance. The SDK chooses the dimension and frame rate of the local camera capture closest to those set by setVideoEncoderConfiguration. |
CAPTURER_OUTPUT_PREFERENCE_PREVIEW | 2: Prioritizes the local preview quality. The SDK chooses higher camera output parameters to improve the local video preview quality. This option requires extra CPU and RAM usage for video pre-processing. |
Connection states.
Enumerator | |
---|---|
CONNECTION_STATE_DISCONNECTED | 1: The SDK is disconnected from Agora's edge server.
|
CONNECTION_STATE_CONNECTING | 2: The SDK is connecting to Agora's edge server.
|
CONNECTION_STATE_CONNECTED | 3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel. If the connection to the channel is lost because, for example, if the network is down or switched, the SDK automatically tries to reconnect and triggers:
|
CONNECTION_STATE_RECONNECTING | 4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.
|
CONNECTION_STATE_FAILED | 5: The SDK fails to connect to Agora's edge server or join the channel. You must call the leaveChannel method to leave this state, and call the joinChannel method again to rejoin the channel. If the SDK is banned from joining the channel by Agora's edge server (through the RESTful API), the SDK triggers the onConnectionBanned (deprecated) and onConnectionStateChanged callbacks. |
Reasons for a connection state change.
States of the last-mile network probe test.
Quality change of the local video in terms of target frame rate and target bit rate since last count.
DEPRECATED Lifecycle of the CDN live video stream.
Content hints for screen sharing.
const int agora::rtc::STANDARD_BITRATE = 0 |
(Recommended) The standard bitrate set in the setVideoEncoderConfiguration method.
In this mode, the bitrates differ between the live broadcast and communication profiles:
const int agora::rtc::COMPATIBLE_BITRATE = -1 |
The compatible bitrate set in the setVideoEncoderConfiguration method.
The bitrate remains the same regardless of the channel profile. If you choose this mode in the Live-broadcast profile, the video frame rate may be lower than the set value.
const int agora::rtc::DEFAULT_MIN_BITRATE = -1 |
Use the default minimum bitrate.