|
Agora C++ API Reference for All Platforms
|
9 #include "AgoraMediaBase.h"
10 #include "IAgoraLog.h"
11 #include "AgoraOptional.h"
12 #include "IAudioDeviceManager.h"
13 #include "IAgoraRhythmPlayer.h"
14 #include "IAgoraMediaEngine.h"
15 #include "IAgoraH265Transcoder.h"
305 struct RtcConnection;
707 renderMode(media::base::RENDER_MODE_HIDDEN) {}
923 struct CameraCapturerConfiguration {
925 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
957 #if defined(__ANDROID__)
993 struct ScreenCaptureConfiguration {
1018 ScreenCaptureParameters
params;
1030 #if (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)|| (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
1046 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
1054 struct ThumbImageBuffer {
1098 struct ScreenCaptureSourceInfo {
1162 class IScreenCaptureSourceList {
1175 virtual unsigned int getCount() = 0;
1205 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
1209 struct AdvancedAudioOptions {
1224 struct ImageTrackOptions {
1254 struct ChannelMediaOptions {
1287 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1295 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1546 #define SET_FROM(X) SetFrom(&X, change.X)
1553 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1556 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1599 #define BEGIN_COMPARE() bool b = true
1600 #define ADD_COMPARE(X) b = (b && (X == o.X))
1601 #define END_COMPARE()
1609 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1612 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1653 #undef BEGIN_COMPARE
1660 if (
this != &replace) {
1661 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
1668 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1671 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1768 struct LeaveChannelOptions {
1801 class IRtcEngineEventHandler {
1892 virtual void onError(
int err,
const char* msg) {
1975 (void)speakerNumber;
1993 virtual void onLeaveChannel(
const RtcStats& stats) { (void)stats; }
2005 virtual void onRtcStats(
const RtcStats& stats) { (void)stats; }
2641 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
2681 const Rectangle* vecRectangle,
const int* vecDistance,
2685 (void) vecRectangle;
2797 virtual void onStreamMessage(
uid_t uid,
int streamId,
const char* data,
size_t length, uint64_t sentTs) {
3093 virtual void onSnapshotTaken(
uid_t uid,
const char* filePath,
int width,
int height,
int errCode) {
3127 (void)newRoleOptions;
3267 (void)isFallbackOrRecover;
3377 (void)permissionType;
3380 #if defined(__ANDROID__)
3501 (void)elapseSinceLastState;
3519 (void)elapseSinceLastState;
3535 (void)elapseSinceLastState;
3553 (void)elapseSinceLastState;
3704 class IVideoDeviceCollection {
3725 virtual int setDevice(
const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3737 virtual int getDevice(
int index,
char deviceNameUTF8[MAX_DEVICE_ID_LENGTH],
3738 char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3749 class IVideoDeviceManager {
3777 virtual int setDevice(
const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3791 virtual int getDevice(
char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3793 #if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__)) || \
3794 (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
3837 virtual int getCapability(
const char* deviceIdUTF8,
const uint32_t deviceCapabilityNumber,
VideoFormat& capability) = 0;
4075 struct RtcEngineContext {
4183 class IMetadataObserver {
4366 struct DirectCdnStreamingStats {
4399 class IDirectCdnStreamingEventHandler {
4443 struct DirectCdnStreamingMediaOptions {
4489 #define SET_FROM(X) SetFrom(&X, change.X)
4501 #define BEGIN_COMPARE() bool b = true
4502 #define ADD_COMPARE(X) b = (b && (X == o.X))
4503 #define END_COMPARE()
4515 #undef BEGIN_COMPARE
4522 if (
this != &replace) {
4523 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
4541 struct ExtensionInfo {
4576 class IMediaRecorder;
4650 virtual int initialize(
const RtcEngineContext& context) = 0;
4673 virtual const char*
getVersion(
int* build) = 0;
4943 virtual int joinChannel(
const char* token,
const char* channelId,
const char* info,
uid_t uid) = 0;
5020 virtual int joinChannel(
const char* token,
const char* channelId,
uid_t uid,
const ChannelMediaOptions& options) = 0;
5101 virtual int leaveChannel(
const LeaveChannelOptions& options) = 0;
5130 virtual int renewToken(
const char* token) = 0;
5279 virtual int startEchoTest(
const EchoTestConfiguration& config) = 0;
5295 #if defined(__APPLE__) && TARGET_OS_IOS
5338 virtual int enableMultiCamera(
bool enabled,
const CameraCapturerConfiguration& config) = 0;
7010 virtual int startAudioMixing(
const char* filePath,
bool loopback,
int cycle) = 0;
7110 virtual int startAudioMixing(
const char* filePath,
bool loopback,
int cycle,
int startPos) = 0;
7459 virtual int preloadEffect(
int soundId,
const char* filePath,
int startPos = 0) = 0;
7512 virtual int playEffect(
int soundId,
const char* filePath,
int loopCount,
double pitch,
double pan,
int gain,
bool publish =
false,
int startPos = 0) = 0;
7543 virtual int playAllEffects(
int loopCount,
double pitch,
double pan,
int gain,
bool publish =
false) = 0;
8053 int param1,
int param2) = 0;
8068 int param1,
int param2) = 0;
8218 virtual int setLogFile(
const char* filePath) = 0;
8640 int samplesPerCall) = 0;
8666 int samplesPerCall) = 0;
8722 int samplesPerCall) = 0;
8975 virtual int enableExtension(
const char* provider,
const char* extension,
const ExtensionInfo& extensionInfo,
bool enable =
true) = 0;
8990 virtual int setExtensionProperty(
const char* provider,
const char* extension,
const ExtensionInfo& extensionInfo,
const char* key,
const char* value) = 0;
9006 virtual int getExtensionProperty(
const char* provider,
const char* extension,
const ExtensionInfo& extensionInfo,
const char* key,
char* value,
int buf_len) = 0;
9104 #if defined(_WIN32) || defined(__linux__) || defined(__ANDROID__)
9235 const char* provider,
const char* extension,
9257 const char* provider,
const char* extension,
9334 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
9648 #if defined(__APPLE__)
9818 #endif // __ANDROID__ || (__APPLE__ && TARGET_OS_IOS) || __OHOS__
9820 #if defined(__APPLE__)
9879 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)|| (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
9912 virtual IScreenCaptureSourceList*
getScreenCaptureSources(
const SIZE& thumbSize,
const SIZE& iconSize,
const bool includeScreen) = 0;
9913 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
9914 #if (defined(__APPLE__) && TARGET_OS_IOS)
9939 #endif // __APPLE__ && TARGET_OS_IOS
9941 #if defined(_WIN32) || (defined(__APPLE__) && !TARGET_OS_IPHONE && TARGET_OS_MAC) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
9980 const ScreenCaptureParameters& captureParams) = 0;
9982 #endif // __APPLE__ && TARGET_OS_MAC && !TARGET_OS_IPHONE
10025 const Rectangle& regionRect,
10026 const ScreenCaptureParameters& captureParams)
__deprecated = 0;
10029 #if defined(__ANDROID__)
10051 #endif // __ANDROID__
10053 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
10126 const ScreenCaptureParameters& captureParams) = 0;
10190 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
10192 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
10327 #if defined(__ANDROID__)
10363 #if defined(_WIN32) || defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && !defined(__ANDROID__) && !defined (__OHOS__))
10397 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC) || __ANDROID__
10432 virtual int rate(
const char* callId,
int rating,
const char* description) = 0;
10452 virtual int complain(
const char* callId,
const char* description) = 0;
10969 virtual int createDataStream(
int* streamId,
bool reliable,
bool ordered) = 0;
11030 virtual int sendStreamMessage(
int streamId,
const char* data,
size_t length) = 0;
11237 virtual
int sendCustomReportMessage(const
char*
id, const
char* category, const
char* event, const
char* label,
int value) = 0;
11282 virtual
int startAudioFrameDump(const
char* channel_id,
uid_t uid, const
char* location, const
char* uuid, const
char* passwd,
long duration_ms,
bool auto_upload) = 0;
11925 virtual
int startRhythmPlayer(const
char* sound1, const
char* sound2, const AgoraRhythmPlayerConfig& config) = 0;
12054 virtual
int enableContentInspect(
bool enabled, const media::ContentInspectConfig &config) = 0;
12595 #define getAgoraRtcEngineVersion getAgoraSdkVersion
12623 #define getAgoraRtcEngineErrorDescription getAgoraSdkErrorDescription
12624 #define setAgoraRtcEngineExternalSymbolLoader setAgoraSdkExternalSymbolLoader
virtual int startScreenCapture(const ScreenCaptureParameters2 &captureParams)=0
Starts screen capture.
RemoteAudioStats()
Definition: IAgoraRtcEngine.h:549
virtual int setDirectCdnStreamingAudioConfiguration(AUDIO_PROFILE_TYPE profile)=0
Sets the audio profile of the audio streams directly pushed to the CDN by the host.
virtual const char * getErrorDescription(int code)=0
Gets the warning or error description.
virtual int enableAudioSpectrumMonitor(int intervalInMS=100)=0
Turns on audio spectrum monitoring.
virtual int setSubscribeVideoAllowlist(uid_t *uidList, int uidNumber)=0
Sets the allowlist of subscriptions for video streams.
virtual int adjustRecordingSignalVolume(int volume)=0
Adjusts the capturing signal volume.
virtual int enableWebSdkInteroperability(bool enabled) __deprecated=0
Enables interoperability with the Agora Web SDK (applicable only in the live streaming.
virtual int enableSpatialAudio(bool enabled)=0
Enables or disables the spatial audio effect.
const char * extraInfo
Definition: IAgoraRtcEngine.h:863
@ VIDEO_PROFILE_LANDSCAPE_360P_11
Definition: IAgoraRtcEngine.h:12461
virtual int setRemoteUserPriority(uid_t uid, PRIORITY_TYPE userPriority)=0
virtual int setCameraAutoFocusFaceModeEnabled(bool enabled)=0
Enables the camera auto-face focus function.
virtual int setAVSyncSource(const char *channelId, uid_t uid)=0
Sets audio-video synchronization for the sender.
const char * appId
Definition: IAgoraRtcEngine.h:4085
LOCAL_VIDEO_EVENT_TYPE
The local video event type.
Definition: AgoraBase.h:3525
void(*)() RtcEngineReleaseCallback
Callback triggered when IRtcEngine is released.
Definition: IAgoraRtcEngine.h:4589
@ VIDEO_PROFILE_PORTRAIT_180P_4
Definition: IAgoraRtcEngine.h:12507
virtual int setSubscribeAudioBlocklist(uid_t *uidList, int uidNumber)=0
Sets the blocklist of subscriptions for audio streams.
virtual int sendRdtMessage(uid_t uid, RdtStreamType type, const char *data, size_t length)=0
Send Reliable message to remote uid in channel.
virtual void onUserAccountUpdated(uid_t uid, const char *userAccount)
Definition: IAgoraRtcEngine.h:3429
LOCAL_VIDEO_STREAM_STATE
Local video state types.
Definition: AgoraBase.h:3501
virtual int enableInEarMonitoring(bool enabled, int includeAudioFilters)=0
Enables in-ear monitoring.
virtual bool isSpeakerphoneEnabled()=0
Checks whether the speakerphone is enabled.
static void ReplaceBy(Optional< T > *s, const Optional< T > &o)
Definition: IAgoraRtcEngine.h:31
virtual void onRtmpStreamingEvent(const char *url, RTMP_STREAMING_EVENT eventCode)
Reports events during the Media Push.
Definition: IAgoraRtcEngine.h:3198
virtual void onExtensionErrorWithContext(const ExtensionContext &context, int error, const char *message)
Occurs when the extension runs incorrectly.
Definition: IAgoraRtcEngine.h:3653
int regulatedCaptureFrameHeight
Definition: IAgoraRtcEngine.h:355
@ AUDIO_SAMPLE_RATE_48000
Definition: AgoraBase.h:4121
virtual int setEnableSpeakerphone(bool speakerOn)=0
Enables/Disables the audio route to the speakerphone.
virtual IScreenCaptureSourceList * getScreenCaptureSources(const SIZE &thumbSize, const SIZE &iconSize, const bool includeScreen)=0
Gets a list of shareable screens and windows.
virtual int setEffectPosition(int soundId, int pos)=0
Sets the playback position of an audio effect file.
The information of the user.
Definition: AgoraBase.h:7611
@ VIDEO_PROFILE_PORTRAIT_360P_6
Definition: IAgoraRtcEngine.h:12521
int publishDuration
Definition: IAgoraRtcEngine.h:655
AUDIO_REVERB_TYPE
Audio reverberation types.
Definition: IAgoraRtcEngine.h:242
@ VIDEO_PROFILE_PORTRAIT_360P_11
Definition: IAgoraRtcEngine.h:12531
@ VIDEO_PROFILE_LANDSCAPE_360P_7
Definition: IAgoraRtcEngine.h:12453
virtual int stopDirectCdnStreaming()=0
Stops pushing media streams to the CDN directly.
VIDEO_MIRROR_MODE_TYPE mirrorMode
Definition: IAgoraRtcEngine.h:1235
virtual int muteAllRemoteVideoStreams(bool mute)=0
Stops or resumes subscribing to the video streams of all remote users.
virtual int setRemoteVideoSubscriptionOptions(uid_t uid, const VideoSubscriptionOptions &options)=0
Options for subscribing to remote video streams.
@ INJECT_STREAM_STATUS_START_UNAUTHORIZED
Definition: IAgoraRtcEngine.h:158
const char * processPath
Definition: IAgoraRtcEngine.h:1121
int e2eDelay
Definition: IAgoraRtcEngine.h:593
int audioChannels
Definition: IAgoraRtcEngine.h:780
virtual int updateScreenCapture(const ScreenCaptureParameters2 &captureParams)=0
Updates the screen capturing parameters.
@ SAVE
Definition: IAgoraRtcEngine.h:3908
int regulatedCaptureFrameWidth
Definition: IAgoraRtcEngine.h:349
virtual int pauseEffect(int soundId)=0
Pauses a specified audio effect file.
@ AUDIO_MIXING_STATE_FAILED
Definition: IAgoraRtcEngine.h:101
@ INJECT_STREAM_STATUS_STOP_TIMEDOUT
Definition: IAgoraRtcEngine.h:182
virtual int muteLocalVideoStream(bool mute)=0
Stops or resumes publishing the local video stream.
IRtcEngineEventHandler * eventHandler
Definition: IAgoraRtcEngine.h:4078
@ DIRECT_CDN_STREAMING_REASON_AUDIO_PUBLICATION
Definition: IAgoraRtcEngine.h:4303
@ VIDEO_PROFILE_LANDSCAPE_720P_5
Definition: IAgoraRtcEngine.h:12481
@ AUDIO_REVERB_STRENGTH
Definition: IAgoraRtcEngine.h:262
virtual void onIntraRequestReceived()
Definition: IAgoraRtcEngine.h:2131
Definition: IAgoraRtcEngine.h:670
int canvasHeight
Definition: IAgoraRtcEngine.h:719
virtual int setVoiceConversionPreset(VOICE_CONVERSION_PRESET preset)=0
Sets a preset voice beautifier effect.
@ TCP_PROXY_TYPE
Definition: IAgoraRtcEngine.h:1732
@ VIDEO_PROFILE_LANDSCAPE_360P_6
Definition: IAgoraRtcEngine.h:12451
int videoHeight
Definition: IAgoraRtcEngine.h:4374
virtual int enableLocalVideo(bool enabled)=0
Enables/Disables the local video capture.
virtual void onLeaveChannel(const RtcStats &stats)
Occurs when a user leaves a channel.
Definition: IAgoraRtcEngine.h:1992
virtual bool isCameraTorchSupported()=0
Checks whether the device supports camera flash.
virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason)
Occurs when the state of virtual metronome changes.
Definition: IAgoraRtcEngine.h:2733
virtual void onDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_REASON reason, const char *message)
Occurs when the CDN streaming state changes.
Definition: IAgoraRtcEngine.h:4416
virtual int getAudioTrackCount()=0
Gets the index of audio tracks of the current music file.
virtual void onStreamMessage(uid_t uid, int streamId, const char *data, size_t length, uint64_t sentTs)
Occurs when the local user receives the data stream from the remote user.
Definition: IAgoraRtcEngine.h:2796
@ AUDIO_MIXING_REASON_OK
Definition: IAgoraRtcEngine.h:140
virtual void onFirstRemoteVideoDecoded(uid_t uid, int width, int height, int elapsed) __deprecated
Occurs when the first remote video frame is received and decoded.
Definition: IAgoraRtcEngine.h:2239
@ RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL
Definition: IAgoraRtcEngine.h:803
virtual ~IVideoDeviceManager()
Definition: IAgoraRtcEngine.h:3750
uid_t uid
Definition: IAgoraRtcEngine.h:315
@ VIDEO_PROFILE_PORTRAIT_480P_6
Definition: IAgoraRtcEngine.h:12539
virtual int stopChannelMediaRelay()=0
Stops the media stream relay. Once the relay stops, the host quits all the target channels.
virtual void onAudioEffectFinished(int soundId)
Occurs when the playback of the local music file finishes.
Definition: IAgoraRtcEngine.h:2066
@ ScreenCaptureSourceType_Custom
Definition: IAgoraRtcEngine.h:1091
virtual float getVideoEffectFloatParam(const char *option, const char *key)=0
Retrieves float type parameters in video effects.
Optional< THREAD_PRIORITY_TYPE > threadPriority
Definition: IAgoraRtcEngine.h:4138
virtual int registerAudioEncodedFrameObserver(const AudioEncodedFrameObserverConfig &config, IAudioEncodedFrameObserver *observer)=0
Registers an encoded audio observer.
uint32_t frozenTimeByCustom
Definition: IAgoraRtcEngine.h:517
@ VIDEO_PROFILE_PORTRAIT_1440P
Definition: IAgoraRtcEngine.h:12561
Optional< CAMERA_DIRECTION > cameraDirection
Definition: IAgoraRtcEngine.h:929
@ VIDEO_PROFILE_PORTRAIT_480P_3
Definition: IAgoraRtcEngine.h:12535
@ AUDIO_MIXING_STATE_PLAYING
Definition: IAgoraRtcEngine.h:82
virtual int queryHDRCapability(VIDEO_MODULE_TYPE videoModule, HDR_CAPABILITY &capability)=0
Queries the HDR capability of the video module.
virtual int setFaceShapeBeautyOptions(bool enabled, const FaceShapeBeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the face shape options and specifies the media source.
@ VIDEO_PROFILE_PORTRAIT_720P_6
Definition: IAgoraRtcEngine.h:12553
virtual int resumeAllEffects()=0
Resumes playing all audio effect files.
virtual int joinChannelWithUserAccountEx(const char *token, const char *channelId, const char *userAccount, const ChannelMediaOptions &options, IRtcEngineEventHandler *eventHandler)=0
Join a channel using a user account and token, and set the media options.
int width
Definition: IAgoraRtcEngine.h:753
virtual int pauseAudioMixing()=0
Pauses playing and mixing the music file.
virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel)=0
Sets the format of the raw audio playback data before mixing.
virtual void onRemoteAudioTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated
Reports the transport-layer statistics of each remote audio stream.
Definition: IAgoraRtcEngine.h:3287
SCREEN_SCENARIO_TYPE
The screen sharing scenario.
Definition: AgoraBase.h:3241
ScreenCaptureSourceType type
Definition: IAgoraRtcEngine.h:1101
int totalActiveTime
Definition: IAgoraRtcEngine.h:524
Definition: AgoraRefPtr.h:44
virtual void onFirstRemoteAudioFrame(uid_t uid, int elapsed) __deprecated
Occurs when the SDK receives the first audio frame from a specific remote user.
Definition: IAgoraRtcEngine.h:2989
virtual int getCapability(const char *deviceIdUTF8, const uint32_t deviceCapabilityNumber, VideoFormat &capability)=0
Gets the detailed video frame information of the video capture device in the specified video format.
virtual void release()=0
Releases all the resources occupied by the IVideoDeviceCollection object.
@ AUDIO_RECORDING_DEVICE
Definition: IAgoraRtcEngine.h:52
virtual IVideoDeviceCollection * enumerateVideoDevices()=0
Enumerates the video devices.
bool stopAudioMixing
Definition: IAgoraRtcEngine.h:1773
virtual const char * getVersion(int *build)=0
Gets the SDK version.
int totalActiveTime
Definition: IAgoraRtcEngine.h:651
virtual int setAudioMixingPitch(int pitch)=0
Sets the pitch of the local music file.
virtual void onLocalVideoStateChanged(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_STREAM_STATE state, LOCAL_VIDEO_STREAM_REASON reason)
Occurs when the local video stream state changes.
Definition: IAgoraRtcEngine.h:2333
int videoWidth
Definition: IAgoraRtcEngine.h:4369
RTMP_STREAMING_EVENT
Events during the Media Push.
Definition: AgoraBase.h:4343
@ MEDIA_DEVICE_STATE_DISABLED
Definition: IAgoraRtcEngine.h:12410
HDR_CAPABILITY
Definition: AgoraBase.h:1969
REMOTE_AUDIO_STATE
Remote audio states.
Definition: AgoraBase.h:3709
unsigned int length
Definition: IAgoraRtcEngine.h:1061
const char * publishUrl
Definition: IAgoraRtcEngine.h:856
@ AUDIO_MIXING_REASON_RESUMED_BY_USER
Definition: IAgoraRtcEngine.h:136
virtual int enableVoiceAITuner(bool enabled, VOICE_AI_TUNER_TYPE type)=0
Enables or disables the voice AI tuner.
@ NONE_PROXY
Definition: IAgoraRtcEngine.h:905
virtual void onVideoRenderingTracingResult(uid_t uid, MEDIA_TRACE_EVENT currentEvent, VideoRenderingTracingInfo tracingInfo)
Video frame rendering event callback.
Definition: IAgoraRtcEngine.h:3450
uid_t remoteUid
Definition: IAgoraRtcEngine.h:4551
int lifecycle
Definition: IAgoraRtcEngine.h:838
virtual int startPreview()=0
Enables the local video preview.
Region()
Definition: IAgoraRtcEngine.h:699
MEDIA_DEVICE_STATE_TYPE
Media device states.
Definition: IAgoraRtcEngine.h:12398
virtual void onLocalAudioStats(const LocalAudioStats &stats)
Reports the statistics of the local audio stream.
Definition: IAgoraRtcEngine.h:2555
virtual int setAINSMode(bool enabled, AUDIO_AINS_MODE mode)=0
Sets whether to enable the AI ​​noise suppression function and set the noise suppression mode.
virtual int updateLocalAudioMixerConfiguration(const LocalAudioMixerConfiguration &config)=0
Updates the configurations for mixing audio streams locally.
@ VIDEO_PROFILE_PORTRAIT_1440P_2
Definition: IAgoraRtcEngine.h:12563
virtual void onCameraExposureAreaChanged(int x, int y, int width, int height)
Occurs when the camera exposure area changes.
Definition: IAgoraRtcEngine.h:2634
Configuration for the Local Access Point.
Definition: AgoraBase.h:7913
virtual void onClientRoleChangeFailed(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole)
Occurs when switching a user role fails.
Definition: IAgoraRtcEngine.h:3143
VideoCompositingLayout()
Definition: IAgoraRtcEngine.h:737
virtual int getDevice(int index, char deviceNameUTF8[MAX_DEVICE_ID_LENGTH], char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
const char * buffer
Definition: IAgoraRtcEngine.h:1057
int videoBitrate
Definition: IAgoraRtcEngine.h:4384
@ VIDEO_PROFILE_LANDSCAPE_4K_3
Definition: IAgoraRtcEngine.h:12497
virtual void onLastmileQuality(int quality)
Reports the last-mile network quality of the local user.
Definition: IAgoraRtcEngine.h:2162
virtual int enableInstantMediaRendering()=0
Enables audio and video frame instant rendering.
AUDIO_PROFILE_TYPE
The audio profile.
Definition: AgoraBase.h:3088
virtual int setCameraFocusPositionInPreview(float positionX, float positionY)=0
Sets the camera manual focus position.
virtual int setRemoteRenderMode(uid_t uid, media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode)=0
Updates the display mode of the video view of a remote user.
@ VIDEO_PROFILE_PORTRAIT_180P
Definition: IAgoraRtcEngine.h:12503
@ AREA_CODE_GLOB
Definition: AgoraBase.h:6953
virtual int numberOfCapabilities(const char *deviceIdUTF8)=0
Gets the number of video formats supported by the specified video capture device.
@ DIRECT_CDN_STREAMING_REASON_FAILED
Definition: IAgoraRtcEngine.h:4297
virtual void onRemoteVideoTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated
Reports the transport-layer statistics of each remote video stream.
Definition: IAgoraRtcEngine.h:3311
@ VIDEO_PROFILE_PORTRAIT_1080P
Definition: IAgoraRtcEngine.h:12555
virtual const char * eventHandlerType() const
Definition: IAgoraRtcEngine.h:1804
VIDEO_EFFECT_ACTION
Actions that can be performed on video effect nodes.
Definition: IAgoraRtcEngine.h:3904
RTMP_STREAM_LIFE_CYCLE_TYPE
Lifecycle of the CDN live video stream.
Definition: IAgoraRtcEngine.h:798
int sentFrameRate
Definition: IAgoraRtcEngine.h:325
The location of the target area relative to the screen or window. If you do not set this parameter,...
Definition: AgoraBase.h:2354
virtual int setDirectCdnStreamingVideoConfiguration(const VideoEncoderConfiguration &config)=0
Sets the video profile of the media streams directly pushed to the CDN by the host.
@ STREAM_FALLBACK_OPTION_DISABLED
Definition: IAgoraRtcEngine.h:273
virtual int createDataStream(int *streamId, bool reliable, bool ordered)=0
Creates a data stream.
const char * sourceTitle
Definition: IAgoraRtcEngine.h:1125
virtual void release()=0
Releases all the resources occupied by the IVideoDeviceManager object.
virtual void onFacePositionChanged(int imageWidth, int imageHeight, const Rectangle *vecRectangle, const int *vecDistance, int numFaces)
Reports the face detection result of the local user.
Definition: IAgoraRtcEngine.h:2679
virtual int setVolumeOfEffect(int soundId, int volume)=0
Gets the volume of a specified audio effect file.
virtual void onUserInfoUpdated(uid_t uid, const UserInfo &info)
Occurs when the SDK gets the user ID and user account of the remote user.
Definition: IAgoraRtcEngine.h:3418
virtual void onNetworkTypeChanged(NETWORK_TYPE type)
Occurs when the local network type changes.
Definition: IAgoraRtcEngine.h:3347
@ AUDIO_VIRTUAL_RECORDING_DEVICE
Definition: IAgoraRtcEngine.h:72
virtual void onFirstRemoteAudioDecoded(uid_t uid, int elapsed) __deprecated
Occurs when the SDK decodes the first remote audio frame for playback.
Definition: IAgoraRtcEngine.h:2973
int videoFramerate
Definition: IAgoraRtcEngine.h:765
SIMULCAST_STREAM_MODE
The mode in which the video stream is sent.
Definition: AgoraBase.h:2222
virtual int stopAudioFrameDump(const char *channel_id, uid_t uid, const char *location)=0
virtual int enableAudioVolumeIndication(int interval, int smooth, bool reportVad)=0
Enables the reporting of users' volume indication.
@ VIDEO_PROFILE_LANDSCAPE_240P_3
Definition: IAgoraRtcEngine.h:12441
@ VIDEO_PROFILE_LANDSCAPE_180P_4
Definition: IAgoraRtcEngine.h:12437
virtual int updateLocalTranscoderConfiguration(const LocalTranscoderConfiguration &config)=0
Updates the local video mixing configuration.
@ INJECT_STREAM_STATUS_START_SUCCESS
Definition: IAgoraRtcEngine.h:150
virtual int registerPacketObserver(IPacketObserver *observer)=0
Registers a packet observer.
virtual ~IVideoDeviceCollection()
Definition: IAgoraRtcEngine.h:3705
void * view_t
Definition: AgoraBase.h:862
virtual int enableMultiCamera(bool enabled, const CameraCapturerConfiguration &config)=0
Enables or disables multi-camera capture.
int networkTransportDelay
Definition: IAgoraRtcEngine.h:447
virtual int switchCamera()=0
Switches between front and rear cameras.
virtual int unregisterMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
Unregisters the specified metadata observer.
virtual void onLocalVideoTranscoderError(const TranscodingVideoStream &stream, VIDEO_TRANSCODER_ERROR error)
Occurs when there's an error during the local video mixing.
Definition: IAgoraRtcEngine.h:3468
virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo *userInfo)=0
Gets the user information by passing in the user ID.
virtual int pauseAllEffects()=0
Pauses all audio effects.
FeatureType
The type of the advanced feature.
Definition: IAgoraRtcEngine.h:1753
virtual int disableAudioSpectrumMonitor()=0
Disables audio spectrum monitoring.
CLOUD_PROXY_TYPE
The cloud proxy type.
Definition: IAgoraRtcEngine.h:900
virtual void onFirstLocalAudioFramePublished(int elapsed)
Occurs when the first audio frame is published.
Definition: IAgoraRtcEngine.h:2948
Definition: AgoraBase.h:100
int sentBitrate
Definition: IAgoraRtcEngine.h:320
@ VIDEO_PROFILE_PORTRAIT_240P_3
Definition: IAgoraRtcEngine.h:12511
virtual int getAudioMixingPublishVolume()=0
Retrieves the audio mixing volume for publishing.
@ ScreenCaptureSourceType_Window
Definition: IAgoraRtcEngine.h:1083
virtual void onRejoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Occurs when a user rejoins the channel.
Definition: IAgoraRtcEngine.h:1846
AUDIO_SCENARIO_TYPE
The audio scenarios.
Definition: AgoraBase.h:3136
SIZE(int ww, int hh)
Definition: IAgoraRtcEngine.h:1041
int fps
Definition: IAgoraRtcEngine.h:1234
@ STREAM_FALLBACK_OPTION_AUDIO_ONLY
Definition: IAgoraRtcEngine.h:283
int totalFrozenTime
Definition: IAgoraRtcEngine.h:634
virtual void onMultipathStats(const MultipathStats &stats)
Report the multipath transmission statistics.
Definition: IAgoraRtcEngine.h:3677
@ DIRECT_CDN_STREAMING_REASON_VIDEO_PUBLICATION
Definition: IAgoraRtcEngine.h:4309
virtual bool isCameraExposureSupported()=0
Queries whether the current camera supports adjusting exposure value.
virtual int stopLocalVideoTranscoder()=0
Stops the local video mixing.
virtual int setCloudProxy(CLOUD_PROXY_TYPE proxyType)=0
Sets up cloud proxy service.
int receivedBitrate
Definition: IAgoraRtcEngine.h:469
Video encoder configurations.
Definition: AgoraBase.h:2069
Definition: IAgoraRtcEngine.h:1800
AUDIO_MIXING_STATE_TYPE
The playback state of the music file.
Definition: IAgoraRtcEngine.h:78
double height
Definition: IAgoraRtcEngine.h:686
virtual int getDevice(char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
Retrieves the current video capture device.
virtual bool isCameraExposurePositionSupported()=0
Checks whether the device supports manual exposure.
virtual void onUserMuteAudio(uid_t uid, bool muted)
Occurs when a remote user (in the communication profile) or a host (in the live streaming profile) st...
Definition: IAgoraRtcEngine.h:2453
@ VIDEO_PROFILE_LANDSCAPE_360P
Definition: IAgoraRtcEngine.h:12445
const char * sourceName
Definition: IAgoraRtcEngine.h:1109
VIDEO_QOE_PREFERENCE_TYPE
Definition: AgoraBase.h:3335
@ VIDEO_PROFILE_PORTRAIT_360P_3
Definition: IAgoraRtcEngine.h:12517
virtual int registerLocalUserAccount(const char *appId, const char *userAccount)=0
Registers a user account.
QUALITY_ADAPT_INDICATION
Quality change of the local video in terms of target frame rate and target bit rate since last count.
Definition: AgoraBase.h:2978
virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo &info)
Occurs when the uplink network information changes.
Definition: IAgoraRtcEngine.h:2145
@ AUDIO_EQUALIZATION_BAND_250
Definition: IAgoraRtcEngine.h:212
Image properties.
Definition: AgoraBase.h:4370
InjectStreamConfig()
Definition: IAgoraRtcEngine.h:784
@ VIDEO_PROFILE_PORTRAIT_360P_4
Definition: IAgoraRtcEngine.h:12519
const char * backgroundColor
Definition: IAgoraRtcEngine.h:722
@ VIDEO_PROFILE_PORTRAIT_4K_3
Definition: IAgoraRtcEngine.h:12567
virtual int getAudioMixingCurrentPosition()=0
Retrieves the playback position (ms) of the music file.
virtual int startDirectCdnStreaming(IDirectCdnStreamingEventHandler *eventHandler, const char *publishUrl, const DirectCdnStreamingMediaOptions &options)=0
Starts pushing media streams to the CDN directly.
virtual int registerAudioSpectrumObserver(agora::media::IAudioSpectrumObserver *observer)=0
Registers an audio spectrum observer.
@ AUDIO_MIXING_STATE_STOPPED
Definition: IAgoraRtcEngine.h:93
@ NONE_PROXY_TYPE
Definition: IAgoraRtcEngine.h:1722
@ DIRECT_CDN_STREAMING_REASON_OK
Definition: IAgoraRtcEngine.h:4292
@ AUDIO_REVERB_WET_DELAY
Definition: IAgoraRtcEngine.h:258
int encodedBitrate
Definition: IAgoraRtcEngine.h:390
REMOTE_VIDEO_STATE_REASON
The reason for the remote video state change.
Definition: AgoraBase.h:3821
QUALITY_ADAPT_INDICATION qualityAdaptIndication
Definition: IAgoraRtcEngine.h:385
Optional< const char * > parameters
Definition: IAgoraRtcEngine.h:4172
RTMP_STREAM_PUBLISH_REASON
Reasons for changes in the status of RTMP or RTMPS streaming.
Definition: AgoraBase.h:4261
@ VIDEO_PROFILE_LANDSCAPE_1440P
Definition: IAgoraRtcEngine.h:12491
virtual void onConnectionInterrupted() __deprecated
Occurs when the connection between the SDK and the server is interrupted.
Definition: IAgoraRtcEngine.h:2770
virtual int setMixedAudioFrameParameters(int sampleRate, int channel, int samplesPerCall)=0
Sets the format of the raw audio data after mixing for audio capture and playback.
@ AUDIO_EQUALIZATION_BAND_31
Definition: IAgoraRtcEngine.h:200
VIDEO_PROFILE_TYPE
Definition: IAgoraRtcEngine.h:12427
virtual int getVolumeOfEffect(int soundId)=0
Gets the volume of a specified audio effect file.
virtual int setSubscribeAudioAllowlist(uid_t *uidList, int uidNumber)=0
Sets the allowlist of subscriptions for audio streams.
VIDEO_MIRROR_MODE_TYPE
Video mirror mode.
Definition: AgoraBase.h:1924
virtual CONNECTION_STATE_TYPE getConnectionState()=0
Gets the current connection state of the SDK.
const char * channelId
Definition: IAgoraRtcEngine.h:4564
@ AUDIO_PLAYOUT_DEVICE
Definition: IAgoraRtcEngine.h:48
virtual int setCameraTorchOn(bool isOn)=0
Enables the camera flash.
virtual int adjustUserPlaybackSignalVolume(uid_t uid, int volume)=0
Adjusts the playback signal volume of a specified remote user.
virtual bool isFeatureAvailableOnDevice(FeatureType type)=0
Checks whether the device supports the specified advanced feature.
virtual int enableEncryption(bool enabled, const EncryptionConfig &config)=0
Enables or disables the built-in encryption.
virtual int getFaceShapeBeautyOptions(FaceShapeBeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Gets the beauty effect options.
@ UDP_PROXY_TYPE
Definition: IAgoraRtcEngine.h:1727
virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config)=0
Enables or disables video screenshot and upload.
virtual bool isCameraZoomSupported()=0
Checks whether the device supports camera zoom.
virtual void onRemoteAudioStateChanged(uid_t uid, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason, int elapsed)
Occurs when the remote audio state changes.
Definition: IAgoraRtcEngine.h:3034
virtual int setAudioSessionOperationRestriction(AUDIO_SESSION_OPERATION_RESTRICTION restriction)=0
Sets the operational permission of the SDK on the audio session.
virtual int startRhythmPlayer(const char *sound1, const char *sound2, const AgoraRhythmPlayerConfig &config)=0
Enables the virtual metronome.
virtual int configRhythmPlayer(const AgoraRhythmPlayerConfig &config)=0
Configures the virtual metronome.
VIDEO_EFFECT_NODE_ID
Types of applicable video effect nodes.
Definition: IAgoraRtcEngine.h:3884
virtual int adjustAudioMixingPublishVolume(int volume)=0
Adjusts the volume of audio mixing for publishing.
virtual int getCount()=0
Gets the total number of the indexed video devices in the system.
virtual int getAudioMixingDuration()=0
Retrieves the duration (ms) of the music file.
HEADPHONE_EQUALIZER_PRESET
Preset headphone equalizer types.
Definition: AgoraBase.h:6421
virtual int adjustCustomAudioPlayoutVolume(track_id_t trackId, int volume)=0
Adjusts the volume of the custom audio track played locally.
virtual int destroyMediaRecorder(agora_refptr< IMediaRecorder > mediaRecorder)=0
Destroys an audio and video recording object.
uint32_t frozenRateByCustomPlcCount
Definition: IAgoraRtcEngine.h:501
ScreenCaptureParameters params
Definition: IAgoraRtcEngine.h:1017
virtual void onVideoDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Occurs when the video device state changes.
Definition: IAgoraRtcEngine.h:2083
const char * appData
Definition: IAgoraRtcEngine.h:732
virtual void onLocalVideoEvent(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_EVENT_TYPE event)
Occurs when the local video event occurs.
Definition: IAgoraRtcEngine.h:2277
virtual int setVideoEffectBoolParam(const char *option, const char *key, bool param)=0
Sets the boolean parameter for video effects.
int width
Definition: IAgoraRtcEngine.h:1035
int totalFrozenTime
Definition: IAgoraRtcEngine.h:474
virtual int setVideoEffectFloatParam(const char *option, const char *key, float param)=0
Sets the float parameter for video effects.
Definition: AgoraAtomicOps.h:21
virtual void onAudioMixingPositionChanged(int64_t position)
Reports the playback progress of a music file.
Definition: IAgoraRtcEngine.h:2040
virtual int setRemoteVoicePosition(uid_t uid, double pan, double gain)=0
Sets the 2D position (the position on the horizontal plane) of the remote user's voice.
@ DIRECT_CDN_STREAMING_STATE_RECOVERING
Definition: IAgoraRtcEngine.h:4357
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1
Definition: IAgoraRtcEngine.h:288
AUDIO_EFFECT_PRESET
Preset audio effects.
Definition: AgoraBase.h:6213
virtual int registerMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
Registers the metadata observer.
@ ScreenCaptureSourceType_Screen
Definition: IAgoraRtcEngine.h:1087
int defaultLayout
Definition: IAgoraRtcEngine.h:835
AUDIO_AINS_MODE
AI noise suppression modes.
Definition: AgoraBase.h:3065
unsigned int track_id_t
Definition: AgoraMediaBase.h:29
virtual void onTranscodingUpdated()
Occurs when the publisher's transcoding is updated.
Definition: IAgoraRtcEngine.h:3214
virtual int updateRtmpTranscoding(const LiveTranscoding &transcoding)=0
Updates the transcoding configuration.
int64_t displayId
Definition: IAgoraRtcEngine.h:1003
DIRECT_CDN_STREAMING_REASON
Reasons for the changes in CDN streaming status.
Definition: IAgoraRtcEngine.h:4287
int publishDuration
Definition: IAgoraRtcEngine.h:528
virtual void onRequestToken()
Occurs when the token expires.
Definition: IAgoraRtcEngine.h:2896
virtual void onError(int err, const char *msg)
Reports an error during SDK runtime.
Definition: IAgoraRtcEngine.h:1891
REMOTE_VIDEO_STATE
The state of the remote video stream.
Definition: AgoraBase.h:3789
virtual uint64_t getNtpWallTimeInMs()=0
Gets the current NTP (Network Time Protocol) time.
virtual int startRtmpStreamWithoutTranscoding(const char *url)=0
Starts pushing media streams to a CDN without transcoding.
virtual int enableCameraCenterStage(bool enabled)=0
Enables or disables portrait center stage.
int regionCount
Definition: IAgoraRtcEngine.h:729
agora::media::MEDIA_SOURCE_TYPE mediaSourceType
Definition: IAgoraRtcEngine.h:4544
virtual void onProxyConnected(const char *channel, uid_t uid, PROXY_TYPE proxyType, const char *localProxyIp, int elapsed)
Reports the proxy connection state.
Definition: IAgoraRtcEngine.h:1871
MEDIA_DEVICE_TYPE
Media device types.
Definition: IAgoraRtcEngine.h:40
virtual void onExtensionEventWithContext(const ExtensionContext &context, const char *key, const char *value)
The event callback of the extension.
Definition: IAgoraRtcEngine.h:3607
@ AUDIO_EQUALIZATION_BAND_62
Definition: IAgoraRtcEngine.h:204
ThumbImageBuffer iconImage
Definition: IAgoraRtcEngine.h:1117
INTERFACE_ID_TYPE
The interface class.
Definition: AgoraBase.h:917
@ VIDEO_PROFILE_LANDSCAPE_480P_10
Definition: IAgoraRtcEngine.h:12475
virtual void onUserStateChanged(uid_t uid, REMOTE_USER_STATE state)
Definition: IAgoraRtcEngine.h:2505
int height
Definition: IAgoraRtcEngine.h:821
virtual void onAudioMixingFinished() __deprecated
Occurs when the playback of the local music file finishes.
Definition: IAgoraRtcEngine.h:2055
virtual int setScreenCaptureScenario(SCREEN_SCENARIO_TYPE screenScenario)=0
Sets the screen sharing scenario.
Definition: IAgoraRtcEngine.h:12579
@ AUDIO_EQUALIZATION_BAND_4K
Definition: IAgoraRtcEngine.h:228
RAW_AUDIO_FRAME_OP_MODE_TYPE
The use mode of the audio data.
Definition: AgoraMediaBase.h:261
virtual int startScreenCaptureByWindowId(int64_t windowId, const Rectangle ®ionRect, const ScreenCaptureParameters &captureParams)=0
Captures the whole or part of a window by specifying the window ID.
VIDEO_CODEC_TYPE codecType
Definition: IAgoraRtcEngine.h:398
@ QUALITY_REPORT_JSON
Definition: IAgoraRtcEngine.h:12389
uid_t localUid
Definition: IAgoraRtcEngine.h:4569
@ INJECT_STREAM_STATUS_START_FAILED
Definition: IAgoraRtcEngine.h:166
virtual int setSubscribeVideoBlocklist(uid_t *uidList, int uidNumber)=0
Sets the blocklist of subscriptions for video streams.
@ TCP_PROXY_AUTO_FALLBACK_TYPE
Definition: IAgoraRtcEngine.h:1741
virtual int adjustAudioMixingPlayoutVolume(int volume)=0
Adjusts the volume of audio mixing for local playback.
virtual int removeVideoWatermark(const char *id)=0
Removes the watermark image from the local video.
STREAM_FALLBACK_OPTIONS
Options for handling audio and video stream fallback when network conditions are weak.
Definition: IAgoraRtcEngine.h:268
int audioBitrate
Definition: IAgoraRtcEngine.h:777
bool minimizeWindow
Definition: IAgoraRtcEngine.h:1144
virtual int setCameraDeviceOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation)=0
Sets the rotation angle of the captured video.
virtual void onAudioVolumeIndication(const AudioVolumeInfo *speakers, unsigned int speakerNumber, int totalVolume)
Reports the volume information of users.
Definition: IAgoraRtcEngine.h:1971
virtual void onStreamMessageError(uid_t uid, int streamId, int code, int missed, int cached)
Occurs when the local user does not receive the data stream from the remote user.
Definition: IAgoraRtcEngine.h:2821
@ VIDEO_PROFILE_LANDSCAPE_480P_4
Definition: IAgoraRtcEngine.h:12467
Definition: AgoraBase.h:4044
bool dualStreamEnabled
Definition: IAgoraRtcEngine.h:412
@ VIDEO_PROFILE_PORTRAIT_120P_3
Definition: IAgoraRtcEngine.h:12501
virtual int writeLog(commons::LOG_LEVEL level, const char *fmt,...)=0
unsigned int rxAudioBytes
Definition: IAgoraRtcEngine.h:542
virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode)=0
Sets the dual-stream mode on the sender side.
virtual bool registerEventHandler(IRtcEngineEventHandler *eventHandler)=0
uid_t uid
Definition: IAgoraRtcEngine.h:580
virtual void onUserOffline(uid_t uid, USER_OFFLINE_REASON_TYPE reason)
Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) leaves...
Definition: IAgoraRtcEngine.h:2431
virtual int registerExtension(const char *provider, const char *extension, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
Registers an extension.
@ VIDEO_PROFILE_PORTRAIT_480P
Definition: IAgoraRtcEngine.h:12533
virtual int setCameraAutoExposureFaceModeEnabled(bool enabled)=0
Sets whether to enable auto exposure.
VIDEO_CODEC_TYPE
Video codec types.
Definition: AgoraBase.h:1268
virtual int stopRtmpStream(const char *url)=0
Stops pushing media streams to a CDN.
The configurations for the data stream.
Definition: AgoraBase.h:2197
virtual void onCameraFocusAreaChanged(int x, int y, int width, int height)
Occurs when the camera focus area changes.
Definition: IAgoraRtcEngine.h:2613
double y
Definition: IAgoraRtcEngine.h:680
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW
Definition: IAgoraRtcEngine.h:277
virtual int stopAudioMixing()=0
Stops playing the music file.
@ RESET
Definition: IAgoraRtcEngine.h:3912
Definition: IAgoraRtcEngine.h:813
virtual void onExtensionStartedWithContext(const ExtensionContext &context)
Occurrs when the extension is enabled.
Definition: IAgoraRtcEngine.h:3622
virtual int setLogLevel(commons::LOG_LEVEL level)=0
Sets the output log level of the SDK.
commons::LogConfig logConfig
Definition: IAgoraRtcEngine.h:4133
virtual int setRemoteDefaultVideoStreamType(VIDEO_STREAM_TYPE streamType)=0
Sets the default video stream type to subscribe to.
NETWORK_TYPE
Network type.
Definition: AgoraBase.h:5219
virtual int setRemoteVideoStreamType(uid_t uid, VIDEO_STREAM_TYPE streamType)=0
Sets the video stream type to subscribe to.
@ AUDIO_EQUALIZATION_BAND_8K
Definition: IAgoraRtcEngine.h:232
virtual void onUserEnableVideo(uid_t uid, bool enabled)
Occurs when a remote user enables or disables the video module.
Definition: IAgoraRtcEngine.h:2495
CHANNEL_PROFILE_TYPE
The channel profile.
Definition: AgoraBase.h:267
virtual void onRtmpStreamingStateChanged(const char *url, RTMP_STREAM_PUBLISH_STATE state, RTMP_STREAM_PUBLISH_REASON reason)
Occurs when the state of Media Push changes.
Definition: IAgoraRtcEngine.h:3184
int height
Definition: IAgoraRtcEngine.h:757
virtual int destroyVideoEffectObject(agora_refptr< IVideoEffectObject > videoEffectObject)=0
Destroys a video effect object.
@ CAMERA_FRONT
Definition: IAgoraRtcEngine.h:892
CAPTURE_BRIGHTNESS_LEVEL_TYPE
The brightness level of the video image captured by the local camera.
Definition: AgoraBase.h:3358
@ DIRECT_CDN_STREAMING_STATE_STOPPED
Definition: IAgoraRtcEngine.h:4344
virtual int startRtmpStreamWithTranscoding(const char *url, const LiveTranscoding &transcoding)=0
Starts Media Push and sets the transcoding configuration.
ScreenCaptureConfiguration()
Definition: IAgoraRtcEngine.h:1026
The advanced options for audio.
Definition: IAgoraRtcEngine.h:1208
virtual int setVideoEncoderConfiguration(const VideoEncoderConfiguration &config)=0
Sets the video encoder configuration.
virtual int queryCodecCapability(CodecCapInfo *codecInfo, int &size)=0
Queries the video codec capabilities of the SDK.
virtual int stopAllEffects()=0
Stops playing all audio effects.
ExtensionInfo()
Definition: IAgoraRtcEngine.h:4571
virtual int pauseAllChannelMediaRelay()=0
Pauses the media stream relay to all target channels.
@ ScreenCaptureSourceType_Unknown
Definition: IAgoraRtcEngine.h:1079
int captureFrameHeight
Definition: IAgoraRtcEngine.h:337
virtual void onAudioQuality(uid_t uid, int quality, unsigned short delay, unsigned short lost) __deprecated
Reports the statistics of the audio stream sent by each remote user.
Definition: IAgoraRtcEngine.h:1914
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle)=0
Starts playing the music file.
virtual int adjustLoopbackSignalVolume(int volume)=0
Adjusts the volume of the signal captured by the sound card.
VIDEO_ORIENTATION
The clockwise rotation of the video.
Definition: AgoraBase.h:1013
virtual int takeSnapshot(uid_t uid, const char *filePath)=0
Takes a snapshot of a video stream.
const char * license
Definition: IAgoraRtcEngine.h:4100
@ AUDIO_EQUALIZATION_BAND_125
Definition: IAgoraRtcEngine.h:208
Rectangle regionRect
Definition: IAgoraRtcEngine.h:1024
int canvasWidth
Definition: IAgoraRtcEngine.h:714
@ VIDEO_PROFILE_LANDSCAPE_360P_3
Definition: IAgoraRtcEngine.h:12447
virtual int sendMediaControlMessage(uid_t uid, const char *data, size_t length)=0
Send media control message.
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5
Definition: IAgoraRtcEngine.h:292
bool stopMicrophoneRecording
Definition: IAgoraRtcEngine.h:1785
const char * rawStreamUrl
Definition: IAgoraRtcEngine.h:860
@ VIDEO_PROFILE_LANDSCAPE_360P_8
Definition: IAgoraRtcEngine.h:12455
@ VIDEO_PROFILE_LANDSCAPE_480P_9
Definition: IAgoraRtcEngine.h:12473
ThumbImageBuffer thumbImage
Definition: IAgoraRtcEngine.h:1113
VIDEO_APPLICATION_SCENARIO_TYPE
The video application scenarios.
Definition: AgoraBase.h:3269
int mosValue
Definition: IAgoraRtcEngine.h:496
virtual void onRemoteVideoStats(const RemoteVideoStats &stats)
Reports the statistics of the video stream sent by each remote users.
Definition: IAgoraRtcEngine.h:2586
@ AUDIO_MIXING_STATE_PAUSED
Definition: IAgoraRtcEngine.h:86
virtual int setAudioEffectParameters(AUDIO_EFFECT_PRESET preset, int param1, int param2)=0
Sets parameters for SDK preset audio effects.
virtual int setColorEnhanceOptions(bool enabled, const ColorEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets color enhancement.
OPTIONAL_ENUM_CLASS LOG_LEVEL
The output log level of the SDK.
Definition: IAgoraLog.h:33
virtual void onTokenPrivilegeWillExpire(const char *token)
Occurs when the token expires in 30 seconds.
Definition: IAgoraRtcEngine.h:2918
int targetFrameRate
Definition: IAgoraRtcEngine.h:380
int audioBitrate
Definition: IAgoraRtcEngine.h:4389
virtual int setRemoteSubscribeFallbackOption(STREAM_FALLBACK_OPTIONS option)=0
Sets the fallback option for the subscribed video stream based on the network conditions.
virtual int getExtensionProperty(const char *provider, const char *extension, const ExtensionInfo &extensionInfo, const char *key, char *value, int buf_len)=0
CHANNEL_PROFILE_TYPE channelProfile
Definition: IAgoraRtcEngine.h:4095
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool isFallbackOrRecover)
Occurs when the remote media stream falls back to the audio-only stream due to poor network condition...
Definition: IAgoraRtcEngine.h:3264
virtual int setEarMonitoringAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
Sets the format of the in-ear monitoring raw audio data.
virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result)
Definition: IAgoraRtcEngine.h:3066
virtual int getAudioDeviceInfo(DeviceInfo &deviceInfo)=0
Gets the audio device information.
virtual void onAudioDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Occurs when the audio device state changes.
Definition: IAgoraRtcEngine.h:2020
@ AUDIO_EQUALIZATION_BAND_16K
Definition: IAgoraRtcEngine.h:236
virtual void onRemoteAudioStats(const RemoteAudioStats &stats)
Reports the transport-layer statistics of each remote audio stream.
Definition: IAgoraRtcEngine.h:2542
virtual int setEffectsVolume(int volume)=0
Sets the volume of the audio effects.
@ __deprecated
Definition: AgoraBase.h:957
virtual int playAllEffects(int loopCount, double pitch, double pan, int gain, bool publish=false)=0
Plays all audio effect files.
int fps
Definition: IAgoraRtcEngine.h:4379
virtual ~IDirectCdnStreamingEventHandler()
Definition: IAgoraRtcEngine.h:4400
AUDIO_RECORDING_QUALITY_TYPE
Recording quality.
Definition: AgoraBase.h:6701
bool isOccluded
Definition: IAgoraRtcEngine.h:1132
virtual int stopLastmileProbeTest()=0
Stops the last mile network probe test.
virtual int setAdvancedAudioOptions(AdvancedAudioOptions &options, int sourceType=0)=0
Sets audio advanced options.
virtual agora_refptr< IMediaPlayer > createMediaPlayer()=0
Creates a media player object.
virtual int queryInterface(INTERFACE_ID_TYPE iid, void **inter)=0
Gets the pointer to the specified interface.
Definition: IAgoraRtcEngine.h:3703
virtual int renewToken(const char *token)=0
Renews the token.
virtual int pauseAudio() __deprecated=0
virtual int sendStreamMessage(int streamId, const char *data, size_t length)=0
Sends data stream messages.
unsigned short txPacketLossRate
Definition: IAgoraRtcEngine.h:403
VOICE_CONVERSION_PRESET
The options for SDK preset voice conversion effects.
Definition: AgoraBase.h:6357
@ AUDIO_VIRTUAL_PLAYOUT_DEVICE
Definition: IAgoraRtcEngine.h:68
virtual void onLocalVideoStats(VIDEO_SOURCE_TYPE source, const LocalVideoStats &stats)
Reports the statistics of the local video stream.
Definition: IAgoraRtcEngine.h:2570
int avSyncTimeMs
Definition: IAgoraRtcEngine.h:645
virtual int setFilterEffectOptions(bool enabled, const FilterEffectOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the filter effect options and specifies the media source.
bool domainLimit
Definition: IAgoraRtcEngine.h:4157
virtual bool isCameraAutoExposureFaceModeSupported()=0
Checks whether the device supports auto exposure.
virtual int enableFaceDetection(bool enabled)=0
Enables or disables face detection for the local user.
virtual bool isCameraCenterStageSupported()=0
Checks if the camera supports portrait center stage.
virtual bool unregisterEventHandler(IRtcEngineEventHandler *eventHandler)=0
@ VIDEO_RENDER_DEVICE
Definition: IAgoraRtcEngine.h:56
virtual int setLocalVideoMirrorMode(VIDEO_MIRROR_MODE_TYPE mirrorMode) __deprecated=0
Sets the local video mirror mode.
int decoderOutputFrameRate
Definition: IAgoraRtcEngine.h:612
void * context
Definition: IAgoraRtcEngine.h:4091
virtual int setExternalMediaProjection(void *mediaProjection)=0
Configures MediaProjection outside of the SDK to capture screen video streams.
@ VIDEO_PROFILE_PORTRAIT_360P
Definition: IAgoraRtcEngine.h:12515
@ UNKNOWN_AUDIO_DEVICE
Definition: IAgoraRtcEngine.h:44
virtual int setCameraExposureFactor(float factor)=0
Sets the camera exposure value.
virtual int stopLocalAudioMixer()=0
Stops the local audio mixing.
@ VIDEO_PROFILE_PORTRAIT_240P_4
Definition: IAgoraRtcEngine.h:12513
virtual void onActiveSpeaker(uid_t uid)
Occurs when the most active remote speaker is detected.
Definition: IAgoraRtcEngine.h:3058
uint32_t frozenCntByCustom
Definition: IAgoraRtcEngine.h:511
int e2eDelay
Definition: IAgoraRtcEngine.h:547
virtual void onFirstLocalVideoFrame(VIDEO_SOURCE_TYPE source, int width, int height, int elapsed)
Occurs when the first local video frame is displayed on the local video view.
Definition: IAgoraRtcEngine.h:2185
@ AUDIO_SCENARIO_DEFAULT
Definition: AgoraBase.h:3141
@ AUDIO_MIXING_REASON_STOPPED_BY_USER
Definition: IAgoraRtcEngine.h:134
@ AUDIO_REVERB_WET_LEVEL
Definition: IAgoraRtcEngine.h:250
virtual void onJoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Occurs when a user joins a channel.
Definition: IAgoraRtcEngine.h:1826
virtual int startLocalVideoTranscoder(const LocalTranscoderConfiguration &config)=0
Starts the local video mixing.
unsigned int width
Definition: IAgoraRtcEngine.h:1065
int audioLossRate
Definition: IAgoraRtcEngine.h:457
@ AUDIO_REVERB_ROOM_SIZE
Definition: IAgoraRtcEngine.h:254
int zOrder
Definition: IAgoraRtcEngine.h:690
virtual int queryDeviceScore()=0
Queries device score.
int captureFrameRate
Definition: IAgoraRtcEngine.h:329
int64_t sourceDisplayId
Definition: IAgoraRtcEngine.h:1151
@ VIDEO_PROFILE_PORTRAIT_480P_4
Definition: IAgoraRtcEngine.h:12537
virtual int setParameters(const char *parameters)=0
Provides technical preview functionalities or special customizations by configuring the SDK with JSON...
@ VIDEO_PROFILE_PORTRAIT_720P_3
Definition: IAgoraRtcEngine.h:12549
virtual int muteRemoteVideoStream(uid_t uid, bool mute)=0
Stops or resumes subscribing to the video stream of a specified user.
virtual bool isCameraFocusSupported()=0
Check whether the device supports the manual focus function.
virtual int setLowlightEnhanceOptions(bool enabled, const LowlightEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets low-light enhancement.
virtual unsigned int getCount()=0
Gets the number of shareable windows and screens.
@ VIDEO_PROFILE_LANDSCAPE_180P
Definition: IAgoraRtcEngine.h:12433
CONNECTION_CHANGED_REASON_TYPE
Reasons causing the change of the connection state.
Definition: AgoraBase.h:5053
int frozenRate
Definition: IAgoraRtcEngine.h:640
virtual int64_t getCurrentMonotonicTimeInMs()=0
Gets the current Monotonic Time of the SDK.
int64_t windowId
Definition: IAgoraRtcEngine.h:1013
virtual int enableLocalAudio(bool enabled)=0
Enables or disables the local audio capture.
virtual int setupLocalVideo(const VideoCanvas &canvas)=0
Initializes the local video view.
@ AUDIO_EQUALIZATION_BAND_500
Definition: IAgoraRtcEngine.h:216
int appDataLength
Definition: IAgoraRtcEngine.h:735
virtual int setRouteInCommunicationMode(int route)=0
Selects the audio playback route in communication audio mode.
virtual int setLocalVoiceReverb(AUDIO_REVERB_TYPE reverbKey, int value)=0
Sets the local voice reverberation.
virtual int stopEffect(int soundId)=0
Stops playing a specified audio effect.
double alpha
Definition: IAgoraRtcEngine.h:695
Rectangle position
Definition: IAgoraRtcEngine.h:1137
virtual int enableCustomAudioLocalPlayback(track_id_t trackId, bool enabled)=0
Sets whether to enable the local playback of external audio source.
virtual int addOrUpdateVideoEffect(uint32_t nodeId, const char *templateName)=0
Adds or updates the video effect for the specified node ID and template.
bool isCaptureWindow
Definition: IAgoraRtcEngine.h:998
int encodedFrameHeight
Definition: IAgoraRtcEngine.h:367
@ AGORA_IID_VIDEO_DEVICE_MANAGER
Definition: AgoraBase.h:925
virtual void onAudioMetadataReceived(uid_t uid, const char *metadata, size_t length)
Definition: IAgoraRtcEngine.h:3590
virtual int setLocalVoiceFormant(double formantRatio)=0
Sets the formant ratio to change the timbre of human voice.
Optional< int > audioProcessingChannels
Definition: IAgoraRtcEngine.h:1214
virtual int stopScreenCapture()=0
Stops screen capture.
const char * imageUrl
Definition: IAgoraRtcEngine.h:1229
@ VIDEO_PROFILE_PORTRAIT_1080P_3
Definition: IAgoraRtcEngine.h:12557
virtual int getUserInfoByUserAccount(const char *userAccount, rtc::UserInfo *userInfo)=0
Gets the user information by passing in the user account.
virtual int setLogFile(const char *filePath)=0
Sets the log file.
virtual int enableVirtualBackground(bool enabled, VirtualBackgroundSource backgroundSource, SegmentationProperty segproperty, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Enables/Disables the virtual background.
virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
virtual int setCameraCapturerConfiguration(const CameraCapturerConfiguration &config)=0
Sets the camera capture configuration.
FACE_SHAPE_AREA
Chooses the specific facial areas that need to be adjusted.
Definition: AgoraBase.h:5484
media::base::RENDER_MODE_TYPE renderMode
Definition: IAgoraRtcEngine.h:697
virtual int setCameraZoomFactor(float factor)=0
Sets the camera zoom factor.
int delay __deprecated
Definition: IAgoraRtcEngine.h:588
Optional< CAMERA_FOCAL_LENGTH_TYPE > cameraFocalLengthType
Definition: IAgoraRtcEngine.h:947
Optional< const char * > deviceId
Definition: IAgoraRtcEngine.h:953
int quality
Definition: IAgoraRtcEngine.h:443
@ VIDEO_PROFILE_LANDSCAPE_1080P_3
Definition: IAgoraRtcEngine.h:12487
RdtState
Reliable Data Transmission tunnel state.
Definition: AgoraBase.h:8032
AdvancedAudioOptions()
Definition: IAgoraRtcEngine.h:1216
@ VIDEO_PROFILE_LANDSCAPE_720P_3
Definition: IAgoraRtcEngine.h:12479
int width
Definition: IAgoraRtcEngine.h:817
double width
Definition: IAgoraRtcEngine.h:684
virtual int startEchoTest(const EchoTestConfiguration &config)=0
Starts an audio device loopback test.
virtual int startOrUpdateChannelMediaRelay(const ChannelMediaRelayConfiguration &configuration)=0
Starts relaying media streams across channels or updates channels for media relay.
virtual int setDefaultAudioRouteToSpeakerphone(bool defaultToSpeaker)=0
Sets the default audio playback route.
virtual void onConnectionBanned() __deprecated
Occurs when the connection is banned by the Agora server.
Definition: IAgoraRtcEngine.h:2777
The information about the specified shareable window or screen. The information is returned in IScree...
Definition: IAgoraRtcEngine.h:1097
virtual int getEffectsVolume()=0
Retrieves the volume of the audio effects.
virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType)
Reports the built-in encryption errors.
Definition: IAgoraRtcEngine.h:3361
virtual void onCameraReady() __deprecated
Occurs when the camera turns on and is ready to capture the video.
Definition: IAgoraRtcEngine.h:2600
REMOTE_AUDIO_STATE_REASON
The reason for the remote audio state change.
Definition: AgoraBase.h:3743
LOCAL_VIDEO_STREAM_REASON
Reasons for local video state changes.
Definition: AgoraBase.h:3547
@ VIDEO_PROFILE_LANDSCAPE_720P_6
Definition: IAgoraRtcEngine.h:12483
virtual int getEffectDuration(const char *filePath)=0
Retrieves the duration of the audio effect file.
RTMP_STREAM_PUBLISH_STATE
States of the Media Push.
Definition: AgoraBase.h:4222
STREAM_SUBSCRIBE_STATE
The subscribing state.
Definition: AgoraBase.h:7490
@ VIDEO_PROFILE_PORTRAIT_360P_7
Definition: IAgoraRtcEngine.h:12523
virtual int setPlaybackAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
Sets the format of the raw audio playback data.
virtual int setLogFileSize(unsigned int fileSizeInKBytes)=0
Sets the log file size.
virtual void onRenewTokenResult(const char *token, RENEW_TOKEN_ERROR_CODE code)
Callback for renewToken call result.
Definition: IAgoraRtcEngine.h:3694
@ VIDEO_PROFILE_PORTRAIT_720P
Definition: IAgoraRtcEngine.h:12547
bool stopAllEffect
Definition: IAgoraRtcEngine.h:1779
REMOTE_USER_STATE
Definition: AgoraBase.h:3885
virtual int preloadChannelWithUserAccount(const char *token, const char *channelId, const char *userAccount)=0
Preloads a channel with token, channelId, and userAccount.
unsigned int rxVideoBytes
Definition: IAgoraRtcEngine.h:667
@ VIDEO_PROFILE_LANDSCAPE_120P_3
Definition: IAgoraRtcEngine.h:12431
AGORA_API agora::rtc::IRtcEngine *AGORA_CALL createAgoraRtcEngine()
Creates one IRtcEngine object.
@ VIDEO_PROFILE_DEFAULT
Definition: IAgoraRtcEngine.h:12569
virtual int setBeautyEffectOptions(bool enabled, const BeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the image enhancement options.
VIDEO_SOURCE_TYPE
The type of the video source.
Definition: AgoraMediaBase.h:67
bool autoRegisterAgoraExtensions
Definition: IAgoraRtcEngine.h:4165
@ VIDEO_PROFILE_PORTRAIT_360P_9
Definition: IAgoraRtcEngine.h:12527
The statistics of the local video stream.
Definition: IAgoraRtcEngine.h:311
virtual int setAudioMixingPlaybackSpeed(int speed)=0
Sets the playback speed of the current audio file.
virtual agora_refptr< IVideoEffectObject > createVideoEffectObject(const char *bundlePath, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Creates a video effect object.
virtual int resumeAllChannelMediaRelay()=0
Resumes the media stream relay to all target channels.
virtual int setExtensionProperty(const char *provider, const char *extension, const ExtensionInfo &extensionInfo, const char *key, const char *value)=0
QUALITY_REPORT_FORMAT_TYPE
Definition: IAgoraRtcEngine.h:12386
Definition: IAgoraRtcEngine.h:4398
virtual void onLocalAudioStateChanged(LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reason)
Occurs when the local audio stream state changes.
Definition: IAgoraRtcEngine.h:3010
virtual int setRemoteRenderTargetFps(int targetFps)=0
Sets the maximum frame rate for rendering remote video.
virtual void onAudioSubscribeStateChanged(const char *channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)
Occurs when the audio subscribing state changes.
Definition: IAgoraRtcEngine.h:3495
@ DIRECT_CDN_STREAMING_STATE_RUNNING
Definition: IAgoraRtcEngine.h:4338
virtual void onVideoStopped() __deprecated
Occurs when the video stops playing.
Definition: IAgoraRtcEngine.h:2700
ImageTrackOptions()
Definition: IAgoraRtcEngine.h:1236
Built-in encryption configurations.
Definition: AgoraBase.h:7328
virtual int destroyMediaPlayer(agora_refptr< IMediaPlayer > media_player)=0
Destroys the media player instance.
@ INJECT_STREAM_STATUS_BROKEN
Definition: IAgoraRtcEngine.h:190
@ UDP_PROXY
Definition: IAgoraRtcEngine.h:910
@ AUDIO_MIXING_REASON_INTERRUPTED_EOF
Definition: IAgoraRtcEngine.h:122
VideoDimensions simulcastDimensions[SimulcastConfig::STREAM_LAYER_COUNT_MAX]
Definition: IAgoraRtcEngine.h:421
DIRECT_CDN_STREAMING_STATE
The current CDN streaming state.
Definition: IAgoraRtcEngine.h:4327
virtual int setAudioMixingPosition(int pos)=0
Sets the audio mixing position.
@ PRIORITY_NORMAL
Definition: IAgoraRtcEngine.h:302
@ VIDEO_PROFILE_PORTRAIT_720P_5
Definition: IAgoraRtcEngine.h:12551
virtual void onVideoPublishStateChanged(VIDEO_SOURCE_TYPE source, const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)
Occurs when the video publishing state changes.
Definition: IAgoraRtcEngine.h:3547
int receivedBitrate
Definition: IAgoraRtcEngine.h:605
VIDEO_TRANSCODER_ERROR
The error code of the local video mixing failure.
Definition: AgoraBase.h:4844
@ MEDIA_DEVICE_STATE_PLUGGED_IN
Definition: IAgoraRtcEngine.h:12415
virtual void onRdtMessage(uid_t userId, RdtStreamType type, const char *data, size_t length)
Occurs when the local user receives data via Reliable Data Transmission (RDT) from a remote user.
Definition: IAgoraRtcEngine.h:2842
Audio statistics of the remote user.
Definition: IAgoraRtcEngine.h:435
virtual int updateScreenCaptureRegion(const Rectangle ®ionRect)=0
Updates the screen capturing region.
virtual int enableVideoImageSource(bool enable, const ImageTrackOptions &options)=0
Sets whether to replace the current video feeds with images when publishing video streams.
@ QUALITY_REPORT_HTML
Definition: IAgoraRtcEngine.h:12392
int encoderOutputFrameRate
Definition: IAgoraRtcEngine.h:359
virtual int unregisterAudioSpectrumObserver(agora::media::IAudioSpectrumObserver *observer)=0
Unregisters the audio spectrum observer.
virtual int performVideoEffectAction(uint32_t nodeId, VIDEO_EFFECT_ACTION actionId)=0
Performs an action on the specified video effect node.
PublisherConfiguration()
Definition: IAgoraRtcEngine.h:865
virtual int setupRemoteVideo(const VideoCanvas &canvas)=0
Initializes the video view of a remote user.
virtual void onLastmileProbeResult(const LastmileProbeResult &result)
Reports the last mile network probe result.
Definition: IAgoraRtcEngine.h:1931
virtual int startDeviceTest(view_t hwnd)=0
LICENSE_ERROR_TYPE
Definition: AgoraBase.h:806
AUDIO_MIXING_REASON_TYPE
The reason why the playback state of the music file changes. Reported in the onAudioMixingStateChange...
Definition: IAgoraRtcEngine.h:108
virtual int addVideoWatermark(const RtcImage &watermark) __deprecated=0
Adds a watermark image to the local video.
CAMERA_STABILIZATION_MODE
Camera stabilization modes.
Definition: AgoraBase.h:3386
virtual bool getVideoEffectBoolParam(const char *option, const char *key)=0
Gets the boolean parameter in video effects.
@ RTMP_STREAM_LIFE_CYCLE_BIND2OWNER
Definition: IAgoraRtcEngine.h:808
@ VIDEO_PROFILE_PORTRAIT_480P_10
Definition: IAgoraRtcEngine.h:12545
virtual void onConnectionLost()
Occurs when the SDK cannot reconnect to Agora's edge server 10 seconds after its connection to the se...
Definition: IAgoraRtcEngine.h:2750
virtual void onUserMuteVideo(uid_t uid, bool muted)
Occurs when a remote user stops or resumes publishing the video stream.
Definition: IAgoraRtcEngine.h:2475
bool owner
Definition: IAgoraRtcEngine.h:843
virtual int setCameraExposurePosition(float positionXinView, float positionYinView)=0
Sets the camera exposure position.
virtual int setInEarMonitoringVolume(int volume)=0
Sets the volume of the in-ear monitor.
bool primaryMonitor
Definition: IAgoraRtcEngine.h:1131
virtual int enableSoundPositionIndication(bool enabled)=0
Enables or disables stereo panning for remote users.
const Region * regions
Definition: IAgoraRtcEngine.h:726
virtual int stopCameraCapture(VIDEO_SOURCE_TYPE sourceType)=0
Stops camera capture.
@ INJECT_STREAM_STATUS_STOP_SUCCESS
Definition: IAgoraRtcEngine.h:170
@ VIDEO_PROFILE_PORTRAIT_1080P_5
Definition: IAgoraRtcEngine.h:12559
virtual int stopPreview()=0
Stops the local video preview.
@ MEDIA_DEVICE_STATE_NOT_PRESENT
Definition: IAgoraRtcEngine.h:12420
int mosValue
Definition: IAgoraRtcEngine.h:663
virtual int setVideoEffectIntParam(const char *option, const char *key, int param)=0
Sets an integer parameter for video effects.
@ MEDIA_DEVICE_STATE_ACTIVE
Definition: IAgoraRtcEngine.h:12406
@ VIDEO_PROFILE_PORTRAIT_480P_8
Definition: IAgoraRtcEngine.h:12541
Used to configure watermark-related information.
Definition: AgoraBase.h:2598
virtual int destroyCustomEncodedVideoTrack(video_track_id_t video_track_id)=0
virtual void onVideoSizeChanged(VIDEO_SOURCE_TYPE sourceType, uid_t uid, int width, int height, int rotation)
Occurs when the video size or rotation of a specified user changes.
Definition: IAgoraRtcEngine.h:2258
virtual int muteRecordingSignal(bool mute)=0
Whether to mute the recording signal.
virtual void onLocalUserRegistered(uid_t uid, const char *userAccount)
Occurs when the local user registers a user account.
Definition: IAgoraRtcEngine.h:3401
int encodedFrameWidth
Definition: IAgoraRtcEngine.h:363
@ VIDEO_PROFILE_LANDSCAPE_180P_3
Definition: IAgoraRtcEngine.h:12435
@ AUDIO_APPLICATION_PLAYOUT_DEVICE
Definition: IAgoraRtcEngine.h:64
USER_OFFLINE_REASON_TYPE
Reasons for a user being offline.
Definition: AgoraBase.h:896
@ INJECT_STREAM_STATUS_START_ALREADY_EXISTS
Definition: IAgoraRtcEngine.h:154
virtual int queryCameraFocalLengthCapability(agora::rtc::FocalLengthInfo *focalLengthInfos, int &size)=0
Queries the focal length capability supported by the camera.
~AdvancedAudioOptions()
Definition: IAgoraRtcEngine.h:1217
virtual int setVoiceBeautifierParameters(VOICE_BEAUTIFIER_PRESET preset, int param1, int param2)=0
Sets parameters for the preset voice beautifier effects.
virtual int muteRemoteAudioStream(uid_t uid, bool mute)=0
Stops or resumes subscribing to the audio stream of a specified user.
@ AUDIO_REVERB_DRY_LEVEL
Definition: IAgoraRtcEngine.h:246
virtual int setVideoDenoiserOptions(bool enabled, const VideoDenoiserOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets video noise reduction.
virtual void onSnapshotTaken(uid_t uid, const char *filePath, int width, int height, int errCode)
Reports the result of taking a video snapshot.
Definition: IAgoraRtcEngine.h:3092
ThumbImageBuffer()
Definition: IAgoraRtcEngine.h:1070
@ INJECT_STREAM_STATUS_STOP_NOT_FOUND
Definition: IAgoraRtcEngine.h:174
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4
Definition: IAgoraRtcEngine.h:291
virtual int destroyCustomVideoTrack(video_track_id_t video_track_id)=0
Destroys the specified video track.
@ MEDIA_DEVICE_STATE_UNPLUGGED
Definition: IAgoraRtcEngine.h:12424
virtual int setVoiceConversionParameters(VOICE_CONVERSION_PRESET preset, int param1, int param2)=0
@ STREAM_LAYER_COUNT_MAX
Definition: AgoraBase.h:2306
virtual void onFirstRemoteVideoFrame(uid_t uid, int width, int height, int elapsed)
Occurs when the renderer receives the first frame of the remote video.
Definition: IAgoraRtcEngine.h:2376
virtual void release()=0
Releases IScreenCaptureSourceList.
virtual int adjustAudioMixingVolume(int volume)=0
Adjusts the volume during audio mixing.
@ VIDEO_PROFILE_PORTRAIT_240P
Definition: IAgoraRtcEngine.h:12509
@ VIDEO_PROFILE_LANDSCAPE_360P_9
Definition: IAgoraRtcEngine.h:12457
Watermark image configurations.
Definition: AgoraBase.h:2420
@ VIDEO_PROFILE_LANDSCAPE_1440P_2
Definition: IAgoraRtcEngine.h:12493
PERMISSION_TYPE
The type of the device permission.
Definition: AgoraBase.h:7471
@ VIDEO_PROFILE_PORTRAIT_480P_9
Definition: IAgoraRtcEngine.h:12543
virtual int setLocalRenderTargetFps(VIDEO_SOURCE_TYPE sourceType, int targetFps)=0
Sets the maximum frame rate for rendering local video.
@ DIRECT_CDN_STREAMING_STATE_FAILED
Definition: IAgoraRtcEngine.h:4350
virtual void onAudioDeviceVolumeChanged(MEDIA_DEVICE_TYPE deviceType, int volume, bool muted)
Reports the volume change of the audio device or app.
Definition: IAgoraRtcEngine.h:3164
virtual int leaveChannel()=0
Leaves a channel.
virtual int setAudioScenario(AUDIO_SCENARIO_TYPE scenario)=0
Sets audio scenarios.
virtual int setClientRole(CLIENT_ROLE_TYPE role)=0
Sets the client role.
virtual int preloadChannel(const char *token, const char *channelId, uid_t uid)=0
Preloads a channel with token, channelId, and uid.
virtual void onClientRoleChanged(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions &newRoleOptions)
Occurs when the user role or the audience latency level changes.
Definition: IAgoraRtcEngine.h:3123
virtual int startScreenCaptureByDisplayId(int64_t displayId, const Rectangle ®ionRect, const ScreenCaptureParameters &captureParams)=0
Captures the screen by specifying the display ID.
int width
Definition: IAgoraRtcEngine.h:597
@ HTTPS_PROXY_TYPE
Definition: IAgoraRtcEngine.h:1747
AUDIO_SCENARIO_TYPE audioScenario
Definition: IAgoraRtcEngine.h:4106
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:616
CameraCapturerConfiguration()
Definition: IAgoraRtcEngine.h:987
virtual int setVoiceBeautifierPreset(VOICE_BEAUTIFIER_PRESET preset)=0
Sets a preset voice beautifier effect.
int decoderInputFrameRate
Definition: IAgoraRtcEngine.h:608
virtual int rate(const char *callId, int rating, const char *description)=0
Allows a user to rate a call after the call ends.
LOCAL_AUDIO_STREAM_REASON
Reasons for local audio state changes.
Definition: AgoraBase.h:3439
int targetBitrate
Definition: IAgoraRtcEngine.h:376
Definition: AgoraRefPtr.h:31
virtual int loadExtensionProvider(const char *path, bool unload_after_use=false)=0
Loads an extension.
@ CAMERA_REAR
Definition: IAgoraRtcEngine.h:888
int qualityChangedReason
Definition: IAgoraRtcEngine.h:538
virtual bool isCameraFaceDetectSupported()=0
Checks whether the device camera supports face detection.
virtual int getCallId(agora::util::AString &callId)=0
Retrieves the call ID.
@ VIDEO_CAPTURE_DEVICE
Definition: IAgoraRtcEngine.h:60
virtual bool isCameraAutoFocusFaceModeSupported()=0
Checks whether the device supports the face auto-focus function.
PROXY_TYPE
The cloud proxy type.
Definition: IAgoraRtcEngine.h:1718
Definition: IAgoraRtcEngine.h:749
virtual int uploadLogFile(agora::util::AString &requestId)=0
virtual int startMediaRenderingTracing()=0
Enables tracing the video frame rendering process.
virtual ~IRtcEngineEventHandler()
Definition: IAgoraRtcEngine.h:1802
VideoFormat format
Definition: IAgoraRtcEngine.h:986
int encodedFrameCount
Definition: IAgoraRtcEngine.h:394
int bitrate
Definition: IAgoraRtcEngine.h:829
int regulatedCaptureFrameRate
Definition: IAgoraRtcEngine.h:343
@ VIDEO_PROFILE_LANDSCAPE_120P
Definition: IAgoraRtcEngine.h:12429
virtual video_track_id_t createCustomEncodedVideoTrack(const SenderOptions &sender_option)=0
@ AUDIO_MIXING_REASON_TOO_FREQUENT_CALL
Definition: IAgoraRtcEngine.h:118
VIDEO_STREAM_TYPE
The type of video streams.
Definition: AgoraBase.h:1672
@ DIRECT_CDN_STREAMING_STATE_IDLE
Definition: IAgoraRtcEngine.h:4332
Optional< bool > followEncodeDimensionRatio
Definition: IAgoraRtcEngine.h:982
@ VIDEO_PROFILE_LANDSCAPE_1080P_5
Definition: IAgoraRtcEngine.h:12489
virtual int unloadAllEffects()=0
Releases a specified preloaded audio effect from the memory.
RtcEngineContext()
Definition: IAgoraRtcEngine.h:4174
Definition: IAgoraRtcEngine.h:4597
@ AUDIO_MIXING_REASON_CAN_NOT_OPEN
Definition: IAgoraRtcEngine.h:113
INJECT_STREAM_STATUS
Definition: IAgoraRtcEngine.h:146
virtual int enableLoopbackRecording(bool enabled, const char *deviceName=NULL)=0
Enables loopback audio capturing.
virtual int sendAudioMetadata(const char *metadata, size_t length)=0
send audio metadata
virtual agora_refptr< IMediaRecorder > createMediaRecorder(const RecorderStreamInfo &info)=0
Creates an audio and video recording object.
@ VIDEO_VIRTUAL_BACKGROUND
Definition: IAgoraRtcEngine.h:1757
AUDIO_EQUALIZATION_BAND_FREQUENCY
The midrange frequency for audio equalization.
Definition: IAgoraRtcEngine.h:196
virtual int setAudioMixingDualMonoMode(media::AUDIO_MIXING_DUAL_MONO_MODE mode)=0
Sets the channel mode of the current audio file.
VOICE_BEAUTIFIER_PRESET
The options for SDK preset voice beautifier effects.
Definition: AgoraBase.h:6124
@ DIRECT_CDN_STREAMING_REASON_NET_CONNECT
Definition: IAgoraRtcEngine.h:4314
@ VIDEO_MIRROR_MODE_DISABLED
Definition: AgoraBase.h:1939
UPLOAD_ERROR_REASON
Definition: AgoraBase.h:7416
virtual int getEffectCurrentPosition(int soundId)=0
Retrieves the playback position of the audio effect file.
virtual int updatePreloadChannelToken(const char *token)=0
Updates the wildcard token for preloading channels.
virtual int resumeAudio() __deprecated=0
virtual int muteLocalAudioStream(bool mute)=0
Stops or resumes publishing the local audio stream.
@ VIDEO_PROFILE_LANDSCAPE_480P_3
Definition: IAgoraRtcEngine.h:12465
virtual int joinChannelWithUserAccount(const char *token, const char *channelId, const char *userAccount)=0
Joins a channel with a User Account and Token.
virtual int setChannelProfile(CHANNEL_PROFILE_TYPE profile)=0
Sets the channel profile.
SIZE()
Definition: IAgoraRtcEngine.h:1040
RENEW_TOKEN_ERROR_CODE
Represents the error codes after calling renewToken.
Definition: AgoraBase.h:7427
@ HTTP_PROXY_TYPE
Definition: IAgoraRtcEngine.h:1744
int frameLossRate
Definition: IAgoraRtcEngine.h:620
The video dimension.
Definition: AgoraBase.h:1178
virtual int updateDirectCdnStreamingMediaOptions(const DirectCdnStreamingMediaOptions &options)=0
virtual int setLocalVoicePitch(double pitch)=0
Changes the voice pitch of the local speaker.
virtual void onTranscodedStreamLayoutInfo(uid_t uid, int width, int height, int layoutCount, const VideoLayout *layoutlist)
Occurs when the local user receives a mixed video stream carrying layout information.
Definition: IAgoraRtcEngine.h:3574
MEDIA_TRACE_EVENT
The rendering state of the media frame.
Definition: AgoraBase.h:7745
int height
Definition: IAgoraRtcEngine.h:601
int captureFrameWidth
Definition: IAgoraRtcEngine.h:333
virtual int setScreenCaptureContentHint(VIDEO_CONTENT_HINT contentHint)=0
Sets the content hint for screen sharing.
VIDEO_MODULE_TYPE
Definition: AgoraBase.h:1954
virtual int setAudioEffectPreset(AUDIO_EFFECT_PRESET preset)=0
Sets an SDK preset audio effect.
@ VIDEO_PROFILE_LANDSCAPE_480P
Definition: IAgoraRtcEngine.h:12463
static AGORA_CPP_API void release(RtcEngineReleaseCallback callback=nullptr)
Releases the IRtcEngine instance.
AUDIO_SAMPLE_RATE_TYPE
The audio sampling rate of the stream to be pushed to the CDN.
Definition: AgoraBase.h:4109
@ MEDIA_DEVICE_STATE_IDLE
Definition: IAgoraRtcEngine.h:12402
virtual int updateScreenCaptureParameters(const ScreenCaptureParameters &captureParams)=0
Updates the screen capturing parameters.
bool useExternalEglContext
Definition: IAgoraRtcEngine.h:4147
virtual int preloadEffect(int soundId, const char *filePath, int startPos=0)=0
Preloads a specified audio effect file into the memory.
int frozenRate
Definition: IAgoraRtcEngine.h:480
virtual int setVideoScenario(VIDEO_APPLICATION_SCENARIO_TYPE scenarioType)=0
Sets video application scenarios.
uint32_t plcCount
Definition: IAgoraRtcEngine.h:505
virtual int stopEchoTest()=0
Stops the audio call test.
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3
Definition: IAgoraRtcEngine.h:290
virtual int startAudioRecording(const char *filePath, AUDIO_RECORDING_QUALITY_TYPE quality)=0
Starts client-side audio recording with recording configuration.
virtual int setLocalVoiceEqualization(AUDIO_EQUALIZATION_BAND_FREQUENCY bandFrequency, int bandGain)=0
Sets the local voice equalization effect.
Definition: AgoraBase.h:156
virtual float getCameraMaxZoomFactor()=0
Gets the maximum zoom ratio supported by the camera.
virtual int getNetworkType()=0
Gets the type of the local network connection.
@ AUDIO_MIXING_REASON_ALL_LOOPS_COMPLETED
Definition: IAgoraRtcEngine.h:130
@ VIDEO_PROFILE_LANDSCAPE_720P
Definition: IAgoraRtcEngine.h:12477
AUDIO_SAMPLE_RATE_TYPE audioSampleRate
Definition: IAgoraRtcEngine.h:773
virtual int enableExtension(const char *provider, const char *extension, const ExtensionInfo &extensionInfo, bool enable=true)=0
@ VIDEO_PROFILE_LANDSCAPE_480P_8
Definition: IAgoraRtcEngine.h:12471
int framerate
Definition: IAgoraRtcEngine.h:825
virtual int resumeEffect(int soundId)=0
Resumes playing a specified audio effect.
const char * injectStreamUrl
Definition: IAgoraRtcEngine.h:852
@ AUDIO_EQUALIZATION_BAND_2K
Definition: IAgoraRtcEngine.h:224
virtual void onAudioRoutingChanged(int routing)
Occurs when the local audio route changes.
Definition: IAgoraRtcEngine.h:3224
virtual int playEffect(int soundId, const char *filePath, int loopCount, double pitch, double pan, int gain, bool publish=false, int startPos=0)=0
Plays the specified local or online audio effect file.
int videoBitrate
Definition: IAgoraRtcEngine.h:769
virtual int setCameraStabilizationMode(CAMERA_STABILIZATION_MODE mode)=0
Sets the camera stabilization mode.
RdtStreamType
Reliable Data Transmission Tunnel message stream type.
Definition: AgoraBase.h:8008
virtual ScreenCaptureSourceInfo getSourceInfo(unsigned int index)=0
Gets information about the specified shareable window or screen.
@ VIDEO_PROFILE_LANDSCAPE_4K
Definition: IAgoraRtcEngine.h:12495
CAPTURE_BRIGHTNESS_LEVEL_TYPE captureBrightnessLevel
Definition: IAgoraRtcEngine.h:408
@ VIDEO_PROFILE_LANDSCAPE_240P
Definition: IAgoraRtcEngine.h:12439
virtual int enableVideo()=0
Enables the video module.
virtual void onExtensionStoppedWithContext(const ExtensionContext &context)
Occurs when the extension is disabled.
Definition: IAgoraRtcEngine.h:3635
LOCAL_AUDIO_STREAM_STATE
The state of the local audio.
Definition: AgoraBase.h:3417
@ VIDEO_PROFILE_PORTRAIT_4K
Definition: IAgoraRtcEngine.h:12565
virtual int setRemoteUserSpatialAudioParams(uid_t uid, const agora::SpatialAudioParams ¶ms)=0
Sets the spatial audio effect parameters of the remote user.
VOICE_AI_TUNER_TYPE
Voice AI tuner sound types.
Definition: AgoraBase.h:6439
@ AUDIO_EQUALIZATION_BAND_1K
Definition: IAgoraRtcEngine.h:220
@ INJECT_STREAM_STATUS_STOP_FAILED
Definition: IAgoraRtcEngine.h:186
unsigned int video_track_id_t
Definition: AgoraMediaBase.h:31
virtual int setHeadphoneEQParameters(int lowGain, int highGain)=0
Sets the low- and high-frequency parameters of the headphone equalizer.
ScreenCaptureSourceType
The type of the shared target. Set in ScreenCaptureSourceInfo.
Definition: IAgoraRtcEngine.h:1075
virtual int removeVideoEffect(uint32_t nodeId)=0
Removes the video effect with the specified node ID.
virtual int getFaceShapeAreaOptions(agora::rtc::FaceShapeAreaOptions::FACE_SHAPE_AREA shapeArea, FaceShapeAreaOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Gets the facial beauty area options.
virtual void onFirstLocalVideoFramePublished(VIDEO_SOURCE_TYPE source, int elapsed)
Occurs when the first video frame is published.
Definition: IAgoraRtcEngine.h:2213
@ LOCAL_PROXY_TYPE
Definition: IAgoraRtcEngine.h:1736
VIDEO_CONTENT_HINT
The content hint for screen sharing.
Definition: AgoraBase.h:3222
virtual int updateChannelMediaOptions(const ChannelMediaOptions &options)=0
Updates the channel media options after joining the channel.
int numChannels
Definition: IAgoraRtcEngine.h:461
virtual void onSetRtmFlagResult(int code)
Definition: IAgoraRtcEngine.h:3665
virtual void onDirectCdnStreamingStats(const DirectCdnStreamingStats &stats)
Reports the CDN streaming statistics.
Definition: IAgoraRtcEngine.h:4432
virtual int initialize(const RtcEngineContext &context)=0
Initializes IRtcEngine.
CLIENT_ROLE_CHANGE_FAILED_REASON
The reason for a user role switch failure.
Definition: AgoraBase.h:5189
@ VIDEO_PROFILE_PORTRAIT_120P
Definition: IAgoraRtcEngine.h:12499
virtual void onNetworkQuality(uid_t uid, int txQuality, int rxQuality)
Reports the last mile network quality of each user in the channel.
Definition: IAgoraRtcEngine.h:2119
virtual int resumeAudioMixing()=0
Resumes playing and mixing the music file.
unsigned int uid_t
Definition: AgoraMediaBase.h:28
Image configurations.
Definition: IAgoraRtcEngine.h:1223
@ INJECT_STREAM_STATUS_START_TIMEDOUT
Definition: IAgoraRtcEngine.h:162
virtual int unloadEffect(int soundId)=0
Releases a specified preloaded audio effect from the memory.
Definition: IAgoraRtcEngine.h:671
virtual int stopRhythmPlayer()=0
Disables the virtual metronome.
virtual int getAudioMixingPlayoutVolume()=0
Retrieves the audio mixing volume for local playback.
virtual int startLastmileProbeTest(const LastmileProbeConfig &config)=0
Starts the last mile network probe test.
Optional< const char * > cameraId
Definition: IAgoraRtcEngine.h:972
virtual int adjustCustomAudioPublishVolume(track_id_t trackId, int volume)=0
Adjusts the volume of the custom audio track played remotely.
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6
Definition: IAgoraRtcEngine.h:293
virtual void onVideoSubscribeStateChanged(const char *channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)
Occurs when the video subscribing state changes.
Definition: IAgoraRtcEngine.h:3513
int jitterBufferDelay
Definition: IAgoraRtcEngine.h:453
@ AUDIO_MIXING_REASON_ONE_LOOP_COMPLETED
Definition: IAgoraRtcEngine.h:126
virtual int adjustPlaybackSignalVolume(int volume)=0
Adjusts the playback signal volume of all remote users.
virtual void onRemoteVideoStateChanged(uid_t uid, REMOTE_VIDEO_STATE state, REMOTE_VIDEO_STATE_REASON reason, int elapsed)
Occurs when the remote video stream state changes.
Definition: IAgoraRtcEngine.h:2353
CLIENT_ROLE_TYPE
The user role in the interactive live streaming.
Definition: AgoraBase.h:2963
virtual int setExtensionProviderProperty(const char *provider, const char *key, const char *value)=0
Sets the properties of the extension provider.
@ INJECT_STREAM_STATUS_STOP_UNAUTHORIZED
Definition: IAgoraRtcEngine.h:178
int injectStreamWidth
Definition: IAgoraRtcEngine.h:846
virtual int startLocalAudioMixer(const LocalAudioMixerConfiguration &config)=0
Starts local audio mixing.
VIDEO_STREAM_TYPE rxStreamType
Definition: IAgoraRtcEngine.h:628
virtual int enableAudio()=0
Enables the audio module.
virtual int stopDeviceTest()=0
uid_t uid
Definition: IAgoraRtcEngine.h:439
virtual int disableVideo()=0
Disables the video module.
virtual int enableDualStreamMode(bool enabled) __deprecated=0
Enables or disables dual-stream mode on the sender side.
ENCRYPTION_ERROR_TYPE
Encryption error type.
Definition: AgoraBase.h:7391
int videoGop
Definition: IAgoraRtcEngine.h:761
virtual int setVideoQoEPreference(VIDEO_QOE_PREFERENCE_TYPE qoePreference)=0
The spatial audio parameters.
Definition: AgoraBase.h:8097
@ VIDEO_PROFILE_LANDSCAPE_360P_4
Definition: IAgoraRtcEngine.h:12449
int encodedFrameDepth
Definition: IAgoraRtcEngine.h:428
virtual int setLogFilter(unsigned int filter)=0
Sets the log output level of the SDK.
virtual int getLoopbackRecordingVolume()=0
virtual void onPermissionError(PERMISSION_TYPE permissionType)
Occurs when the SDK cannot get the device permission.
Definition: IAgoraRtcEngine.h:3375
virtual void onUploadLogResult(const char *requestId, bool success, UPLOAD_ERROR_REASON reason)
Definition: IAgoraRtcEngine.h:3479
int qoeQuality
Definition: IAgoraRtcEngine.h:533
LeaveChannelOptions()
Definition: IAgoraRtcEngine.h:1787
@ STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2
Definition: IAgoraRtcEngine.h:289
virtual int setFaceShapeAreaOptions(const FaceShapeAreaOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the image enhancement options for facial areas and specifies the media source.
@ VIDEO_PROFILE_LANDSCAPE_360P_10
Definition: IAgoraRtcEngine.h:12459
virtual int setHeadphoneEQPreset(HEADPHONE_EQUALIZER_PRESET preset)=0
Sets the preset headphone equalization effect.
virtual int startCameraCapture(VIDEO_SOURCE_TYPE sourceType, const CameraCapturerConfiguration &config)=0
Starts camera capture.
virtual int setLocalAccessPoint(const LocalAccessPointConfiguration &config)=0
Configures the connection to Agora's Private Media Server access module.
virtual void onRdtStateChanged(uid_t userId, RdtState state)
Occurs when the RDT tunnel state changed.
Definition: IAgoraRtcEngine.h:2857
virtual video_track_id_t createCustomVideoTrack()=0
Creates a custom video track.
@ DIRECT_CDN_STREAMING_REASON_BAD_NAME
Definition: IAgoraRtcEngine.h:4319
static void SetFrom(Optional< T > *s, const Optional< T > &o)
Definition: IAgoraRtcEngine.h:24
virtual int disableAudio()=0
Disables the audio module.
virtual int muteAllRemoteAudioStreams(bool mute)=0
Stops or resumes subscribing to the audio streams of all remote users.
virtual void onRtcStats(const RtcStats &stats)
Reports the statistics about the current call.
Definition: IAgoraRtcEngine.h:2004
virtual void onUserJoined(uid_t uid, int elapsed)
Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) joins ...
Definition: IAgoraRtcEngine.h:2407
@ VIDEO_PROFILE_LANDSCAPE_240P_4
Definition: IAgoraRtcEngine.h:12443
Definition: IAgoraRtcEngine.h:12572
STREAM_PUBLISH_STATE
The publishing state.
Definition: AgoraBase.h:7524
CONNECTION_STATE_TYPE
Connection states.
Definition: AgoraBase.h:4445
@ VIDEO_BEAUTY_EFFECT
Definition: IAgoraRtcEngine.h:1761
virtual int sendCustomReportMessage(const char *id, const char *category, const char *event, const char *label, int value)=0
Reports customized messages.
Focal length information supported by the camera, including the camera direction and focal length typ...
Definition: AgoraBase.h:2055
ScreenCaptureSourceInfo()
Definition: IAgoraRtcEngine.h:1152
virtual ~IVideoEffectObject()
Definition: IAgoraRtcEngine.h:3877
int packetLossRate
Definition: IAgoraRtcEngine.h:624
int hwEncoderAccelerating
Definition: IAgoraRtcEngine.h:418
virtual void onMediaControlMessage(uid_t userId, const char *data, size_t length)
Occurs when the local user receives media control message sent by a remote user.
Definition: IAgoraRtcEngine.h:2873
Definition: AgoraBase.h:8063
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:371
virtual int startScreenCaptureByScreenRect(const Rectangle &screenRect, const Rectangle ®ionRect, const ScreenCaptureParameters &captureParams) __deprecated=0
Captures the whole or part of a screen by specifying the screen rect.
unsigned int height
Definition: IAgoraRtcEngine.h:1069
virtual void onAudioMixingStateChanged(AUDIO_MIXING_STATE_TYPE state, AUDIO_MIXING_REASON_TYPE reason)
Occurs when the playback state of the music file changes.
Definition: IAgoraRtcEngine.h:2713
@ AGORA_IID_AUDIO_DEVICE_MANAGER
Definition: AgoraBase.h:921
int64_t sourceId
Definition: IAgoraRtcEngine.h:1105
virtual void onPermissionGranted(agora::rtc::PERMISSION_TYPE permissionType)
Definition: IAgoraRtcEngine.h:3384
virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode)=0
Updates the display mode of the local video view.
virtual int startAudioFrameDump(const char *channel_id, uid_t uid, const char *location, const char *uuid, const char *passwd, long duration_ms, bool auto_upload)=0
virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile, AUDIO_SCENARIO_TYPE scenario) __deprecated=0
Sets the audio profile and audio scenario.
unsigned int areaCode
Definition: IAgoraRtcEngine.h:4112
virtual int setSimulcastConfig(const SimulcastConfig &simulcastConfig)=0
Sets the simulcast video stream configuration.
virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error)
Definition: IAgoraRtcEngine.h:2927
Definition: video_node_i.h:28
virtual int selectAudioTrack(int index)=0
Selects the audio track used during playback.
Statistics of the remote video stream.
Definition: IAgoraRtcEngine.h:576
int injectStreamHeight
Definition: IAgoraRtcEngine.h:849
Definition: AgoraOptional.h:52
virtual int joinChannel(const char *token, const char *channelId, const char *info, uid_t uid)=0
Joins a channel.
CAMERA_DIRECTION
The camera direction.
Definition: IAgoraRtcEngine.h:884
@ VIDEO_PROFILE_PORTRAIT_360P_10
Definition: IAgoraRtcEngine.h:12529
AUDIO_SESSION_OPERATION_RESTRICTION
The operation permissions of the SDK on the audio session.
Definition: AgoraBase.h:836
virtual int setRecordingAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
Sets the format of the captured raw audio data.
@ VIDEO_PROFILE_PORTRAIT_180P_3
Definition: IAgoraRtcEngine.h:12505
Rectangle screenRect
Definition: IAgoraRtcEngine.h:1008
virtual ~IScreenCaptureSourceList()
Definition: IAgoraRtcEngine.h:1163
@ VIDEO_PROFILE_LANDSCAPE_1080P
Definition: IAgoraRtcEngine.h:12485
virtual void onUserEnableLocalVideo(uid_t uid, bool enabled) __deprecated
Occurs when a specific remote user enables/disables the local video capturing function.
Definition: IAgoraRtcEngine.h:2526
virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
virtual void onChannelMediaRelayStateChanged(int state, int code)
Occurs when the state of the media stream relay changes.
Definition: IAgoraRtcEngine.h:3236
virtual int complain(const char *callId, const char *description)=0
Allows a user to complain about the call quality after a call ends.
virtual int clearVideoWatermarks()=0
Removes the watermark image from the video stream.
virtual int stopAudioRecording()=0
Stops client-side audio recording.
int height
Definition: IAgoraRtcEngine.h:1038
virtual int queryScreenCaptureCapability()=0
Queries the highest frame rate supported by the device during screen sharing.
virtual void onAudioPublishStateChanged(const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)
Occurs when the audio publishing state changes.
Definition: IAgoraRtcEngine.h:3530
virtual int setHighPriorityUserList(uid_t *uidList, int uidNum, STREAM_FALLBACK_OPTIONS option)=0
virtual int setScreenCaptureOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation)=0
int receivedSampleRate
Definition: IAgoraRtcEngine.h:465
uid_t uid
Definition: IAgoraRtcEngine.h:674
@ VIDEO_PROFILE_PORTRAIT_360P_8
Definition: IAgoraRtcEngine.h:12525
PRIORITY_TYPE
Definition: IAgoraRtcEngine.h:296
virtual void onConnectionStateChanged(CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason)
Occurs when the network connection state changes.
Definition: IAgoraRtcEngine.h:3329
@ VIDEO_PROFILE_LANDSCAPE_480P_6
Definition: IAgoraRtcEngine.h:12469
virtual int getVideoEffectIntParam(const char *option, const char *key)=0
Retrieves integer parameters in video effects.
@ PRIORITY_HIGH
Definition: IAgoraRtcEngine.h:299
double x
Definition: IAgoraRtcEngine.h:677
@ CHANNEL_PROFILE_LIVE_BROADCASTING
Definition: AgoraBase.h:275