|
Agora Java API Reference for Android
|
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"
24 static void SetFrom(Optional<T>* s,
const Optional<T>& o) {
31 static void ReplaceBy(Optional<T>* s,
const Optional<T>& o) {
40 enum MEDIA_DEVICE_TYPE {
44 UNKNOWN_AUDIO_DEVICE = -1,
48 AUDIO_PLAYOUT_DEVICE = 0,
52 AUDIO_RECORDING_DEVICE = 1,
56 VIDEO_RENDER_DEVICE = 2,
60 VIDEO_CAPTURE_DEVICE = 3,
64 AUDIO_APPLICATION_PLAYOUT_DEVICE = 4,
68 AUDIO_VIRTUAL_PLAYOUT_DEVICE = 5,
72 AUDIO_VIRTUAL_RECORDING_DEVICE = 6,
78 enum AUDIO_MIXING_STATE_TYPE {
82 AUDIO_MIXING_STATE_PLAYING = 710,
86 AUDIO_MIXING_STATE_PAUSED = 711,
93 AUDIO_MIXING_STATE_STOPPED = 713,
101 AUDIO_MIXING_STATE_FAILED = 714,
108 enum AUDIO_MIXING_REASON_TYPE {
113 AUDIO_MIXING_REASON_CAN_NOT_OPEN = 701,
118 AUDIO_MIXING_REASON_TOO_FREQUENT_CALL = 702,
122 AUDIO_MIXING_REASON_INTERRUPTED_EOF = 703,
126 AUDIO_MIXING_REASON_ONE_LOOP_COMPLETED = 721,
130 AUDIO_MIXING_REASON_ALL_LOOPS_COMPLETED = 723,
134 AUDIO_MIXING_REASON_STOPPED_BY_USER = 724,
136 AUDIO_MIXING_REASON_RESUMED_BY_USER = 726,
140 AUDIO_MIXING_REASON_OK = 0,
146 enum INJECT_STREAM_STATUS {
150 INJECT_STREAM_STATUS_START_SUCCESS = 0,
154 INJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1,
158 INJECT_STREAM_STATUS_START_UNAUTHORIZED = 2,
162 INJECT_STREAM_STATUS_START_TIMEDOUT = 3,
166 INJECT_STREAM_STATUS_START_FAILED = 4,
170 INJECT_STREAM_STATUS_STOP_SUCCESS = 5,
174 INJECT_STREAM_STATUS_STOP_NOT_FOUND = 6,
178 INJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7,
182 INJECT_STREAM_STATUS_STOP_TIMEDOUT = 8,
186 INJECT_STREAM_STATUS_STOP_FAILED = 9,
190 INJECT_STREAM_STATUS_BROKEN = 10,
196 enum AUDIO_EQUALIZATION_BAND_FREQUENCY {
200 AUDIO_EQUALIZATION_BAND_31 = 0,
204 AUDIO_EQUALIZATION_BAND_62 = 1,
208 AUDIO_EQUALIZATION_BAND_125 = 2,
212 AUDIO_EQUALIZATION_BAND_250 = 3,
216 AUDIO_EQUALIZATION_BAND_500 = 4,
220 AUDIO_EQUALIZATION_BAND_1K = 5,
224 AUDIO_EQUALIZATION_BAND_2K = 6,
228 AUDIO_EQUALIZATION_BAND_4K = 7,
232 AUDIO_EQUALIZATION_BAND_8K = 8,
236 AUDIO_EQUALIZATION_BAND_16K = 9,
242 enum AUDIO_REVERB_TYPE {
246 AUDIO_REVERB_DRY_LEVEL = 0,
250 AUDIO_REVERB_WET_LEVEL = 1,
254 AUDIO_REVERB_ROOM_SIZE = 2,
258 AUDIO_REVERB_WET_DELAY = 3,
262 AUDIO_REVERB_STRENGTH = 4,
268 enum STREAM_FALLBACK_OPTIONS {
273 STREAM_FALLBACK_OPTION_DISABLED = 0,
277 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1,
283 STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2,
288 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1 = 3,
289 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2 = 4,
290 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3 = 5,
291 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4 = 6,
292 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5 = 7,
293 STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6 = 8,
302 PRIORITY_NORMAL = 100,
305 struct RtcConnection;
697 media::base::RENDER_MODE_TYPE renderMode;
707 renderMode(media::base::RENDER_MODE_HIDDEN) {}
798 enum RTMP_STREAM_LIFE_CYCLE_TYPE {
803 RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL = 1,
808 RTMP_STREAM_LIFE_CYCLE_BIND2OWNER = 2,
871 lifecycle(RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL),
884 enum CAMERA_DIRECTION {
900 enum CLOUD_PROXY_TYPE {
925 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
957 #if defined(__ANDROID__)
1030 #if (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)|| (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
1041 SIZE() : width(0), height(0) {}
1042 SIZE(
int ww,
int hh) : width(ww), height(hh) {}
1046 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
1054 struct ThumbImageBuffer {
1062 unsigned int length;
1070 unsigned int height;
1071 ThumbImageBuffer() : buffer(nullptr), length(0), width(0), height(0) {}
1076 enum ScreenCaptureSourceType {
1080 ScreenCaptureSourceType_Unknown = -1,
1084 ScreenCaptureSourceType_Window = 0,
1088 ScreenCaptureSourceType_Screen = 1,
1092 ScreenCaptureSourceType_Custom = 2,
1098 struct ScreenCaptureSourceInfo {
1102 ScreenCaptureSourceType type;
1110 const char* sourceName;
1114 ThumbImageBuffer thumbImage;
1118 ThumbImageBuffer iconImage;
1122 const char* processPath;
1126 const char* sourceTitle;
1132 bool primaryMonitor;
1145 bool minimizeWindow;
1152 int64_t sourceDisplayId;
1153 ScreenCaptureSourceInfo() : type(ScreenCaptureSourceType_Unknown), sourceId(0), sourceName(nullptr),
1154 processPath(nullptr), sourceTitle(nullptr), primaryMonitor(false), isOccluded(false), minimizeWindow(false), sourceDisplayId(-2) {}
1156 ScreenCaptureSourceInfo() : type(ScreenCaptureSourceType_Unknown), sourceId(0), sourceName(nullptr), processPath(nullptr), sourceTitle(nullptr), primaryMonitor(false), isOccluded(false) {}
1162 class IScreenCaptureSourceList {
1164 virtual ~IScreenCaptureSourceList(){};
1175 virtual unsigned int getCount() = 0;
1192 virtual ScreenCaptureSourceInfo getSourceInfo(
unsigned int index) = 0;
1203 virtual void release() = 0;
1205 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
1236 VIDEO_MIRROR_MODE_TYPE mirrorMode;
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__)
1538 void SetAll(
const ChannelMediaOptions& change) {
1539 #define SET_FROM(X) SetFrom(&X, change.X)
1546 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1547 SET_FROM(publishScreenCaptureAudio);
1549 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1550 SET_FROM(publishScreenCaptureVideo);
1590 bool operator==(
const ChannelMediaOptions& o)
const {
1591 #define BEGIN_COMPARE() bool b = true
1592 #define ADD_COMPARE(X) b = (b && (X == o.X))
1593 #define END_COMPARE()
1601 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1602 ADD_COMPARE(publishScreenCaptureAudio);
1604 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1605 ADD_COMPARE(publishScreenCaptureVideo);
1644 #undef BEGIN_COMPARE
1650 ChannelMediaOptions& operator=(
const ChannelMediaOptions& replace) {
1651 if (
this != &replace) {
1652 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
1659 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1660 REPLACE_BY(publishScreenCaptureAudio);
1662 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1663 REPLACE_BY(publishScreenCaptureVideo);
1713 NONE_PROXY_TYPE = 0,
1727 LOCAL_PROXY_TYPE = 3,
1732 TCP_PROXY_AUTO_FALLBACK_TYPE = 4,
1735 HTTP_PROXY_TYPE = 5,
1738 HTTPS_PROXY_TYPE = 6,
1748 VIDEO_VIRTUAL_BACKGROUND = 1,
1752 VIDEO_BEAUTY_EFFECT = 2,
1795 virtual const char* eventHandlerType()
const {
return "event_handler"; }
1862 virtual void onProxyConnected(
const char* channel, uid_t uid, PROXY_TYPE proxyType,
const char* localProxyIp,
int elapsed) {
1905 virtual void onAudioQuality(uid_t uid,
int quality,
unsigned short delay,
unsigned short lost) __deprecated {
1965 (void)speakerNumber;
2249 virtual void onVideoSizeChanged(VIDEO_SOURCE_TYPE sourceType, uid_t uid,
int width,
int height,
int rotation) {
2631 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
2670 virtual void onFacePositionChanged(
int imageWidth,
int imageHeight,
2671 const Rectangle* vecRectangle,
const int* vecDistance,
2675 (void) vecRectangle;
2787 virtual void onStreamMessage(uid_t uid,
int streamId,
const char* data,
size_t length, uint64_t sentTs) {
2833 virtual void onRdtMessage(uid_t userId, RdtStreamType type,
const char *data,
size_t length) {
3083 virtual void onSnapshotTaken(uid_t uid,
const char* filePath,
int width,
int height,
int errCode) {
3117 (void)newRoleOptions;
3176 RTMP_STREAM_PUBLISH_REASON reason) {
3257 (void)isFallbackOrRecover;
3321 CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason) {
3367 (void)permissionType;
3370 #if defined(__ANDROID__)
3375 virtual void onPermissionGranted(agora::rtc::PERMISSION_TYPE permissionType) {}
3486 virtual void onAudioSubscribeStateChanged(
const char* channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState,
int elapseSinceLastState) {
3491 (void)elapseSinceLastState;
3504 virtual void onVideoSubscribeStateChanged(
const char* channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState,
int elapseSinceLastState) {
3509 (void)elapseSinceLastState;
3521 virtual void onAudioPublishStateChanged(
const char* channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState,
int elapseSinceLastState) {
3525 (void)elapseSinceLastState;
3538 virtual void onVideoPublishStateChanged(VIDEO_SOURCE_TYPE source,
const char* channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState,
int elapseSinceLastState) {
3543 (void)elapseSinceLastState;
3715 virtual int setDevice(
const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3727 virtual int getDevice(
int index,
char deviceNameUTF8[MAX_DEVICE_ID_LENGTH],
3728 char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3767 virtual int setDevice(
const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3781 virtual int getDevice(
char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3783 #if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__)) || \
3784 (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
3804 virtual int numberOfCapabilities(
const char* deviceIdUTF8) = 0;
3827 virtual int getCapability(
const char* deviceIdUTF8,
const uint32_t deviceCapabilityNumber,
VideoFormat& capability) = 0;
4189 INVALID_METADATA_SIZE_IN_BYTE = -1,
4190 DEFAULT_METADATA_SIZE_IN_BYTE = 512,
4191 MAX_METADATA_SIZE_IN_BYTE = 1024
4271 enum DIRECT_CDN_STREAMING_REASON {
4276 DIRECT_CDN_STREAMING_REASON_OK = 0,
4281 DIRECT_CDN_STREAMING_REASON_FAILED = 1,
4287 DIRECT_CDN_STREAMING_REASON_AUDIO_PUBLICATION = 2,
4293 DIRECT_CDN_STREAMING_REASON_VIDEO_PUBLICATION = 3,
4298 DIRECT_CDN_STREAMING_REASON_NET_CONNECT = 4,
4303 DIRECT_CDN_STREAMING_REASON_BAD_NAME = 5,
4311 enum DIRECT_CDN_STREAMING_STATE {
4316 DIRECT_CDN_STREAMING_STATE_IDLE = 0,
4322 DIRECT_CDN_STREAMING_STATE_RUNNING = 1,
4328 DIRECT_CDN_STREAMING_STATE_STOPPED = 2,
4334 DIRECT_CDN_STREAMING_STATE_FAILED = 3,
4341 DIRECT_CDN_STREAMING_STATE_RECOVERING = 4,
4471 void SetAll(
const DirectCdnStreamingMediaOptions& change) {
4472 #define SET_FROM(X) SetFrom(&X, change.X)
4483 bool operator==(
const DirectCdnStreamingMediaOptions& o)
const {
4484 #define BEGIN_COMPARE() bool b = true
4485 #define ADD_COMPARE(X) b = (b && (X == o.X))
4486 #define END_COMPARE()
4498 #undef BEGIN_COMPARE
4504 DirectCdnStreamingMediaOptions& operator=(
const DirectCdnStreamingMediaOptions& replace) {
4505 if (
this != &replace) {
4506 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
4559 class IMediaRecorder;
4573 using RtcEngineReleaseCallback = void(*)();
4607 AGORA_CPP_API
static void release(RtcEngineReleaseCallback callback =
nullptr);
4926 virtual int joinChannel(
const char* token,
const char* channelId,
const char* info, uid_t uid) = 0;
5278 #if defined(__APPLE__) && TARGET_OS_IOS
6150 virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile, AUDIO_SCENARIO_TYPE scenario) __deprecated = 0;
6751 AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
6788 AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
7093 virtual int startAudioMixing(
const char* filePath,
bool loopback,
int cycle,
int startPos) = 0;
7442 virtual int preloadEffect(
int soundId,
const char* filePath,
int startPos = 0) = 0;
7495 virtual int playEffect(
int soundId,
const char* filePath,
int loopCount,
double pitch,
double pan,
int gain,
bool publish =
false,
int startPos = 0) = 0;
7526 virtual int playAllEffects(
int loopCount,
double pitch,
double pan,
int gain,
bool publish =
false) = 0;
8036 int param1,
int param2) = 0;
8051 int param1,
int param2) = 0;
8296 virtual int writeLog(commons::LOG_LEVEL level,
const char* fmt, ...) = 0;
8323 virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode) = 0;
8347 VIDEO_MIRROR_MODE_TYPE mirrorMode) = 0;
8622 RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
8623 int samplesPerCall) = 0;
8648 RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
8649 int samplesPerCall) = 0;
8704 RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
8705 int samplesPerCall) = 0;
9087 #if defined(_WIN32) || defined(__linux__) || defined(__ANDROID__)
9111 virtual int loadExtensionProvider(
const char* path,
bool unload_after_use =
false) = 0;
9166 virtual int registerExtension(
const char* provider,
const char* extension, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9193 virtual int enableExtension(
const char* provider,
const char* extension,
bool enable=
true, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9218 const char* provider,
const char* extension,
9219 const char* key,
const char* value, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9240 const char* provider,
const char* extension,
9241 const char* key,
char* value,
int buf_len, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9317 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
9338 virtual int switchCamera() = 0;
9353 virtual bool isCameraZoomSupported() = 0;
9367 virtual bool isCameraFaceDetectSupported() = 0;
9386 virtual bool isCameraTorchSupported() = 0;
9400 virtual bool isCameraFocusSupported() = 0;
9414 virtual bool isCameraAutoFocusFaceModeSupported() = 0;
9442 virtual int setCameraZoomFactor(
float factor) = 0;
9466 virtual int enableFaceDetection(
bool enabled) = 0;
9479 virtual float getCameraMaxZoomFactor() = 0;
9498 virtual int setCameraFocusPositionInPreview(
float positionX,
float positionY) = 0;
9517 virtual int setCameraTorchOn(
bool isOn) = 0;
9538 virtual int setCameraAutoFocusFaceModeEnabled(
bool enabled) = 0;
9554 virtual bool isCameraExposurePositionSupported() = 0;
9575 virtual int setCameraExposurePosition(
float positionXinView,
float positionYinView) = 0;
9595 virtual bool isCameraExposureSupported() = 0;
9629 virtual int setCameraExposureFactor(
float factor) = 0;
9631 #if defined(__APPLE__)
9644 virtual bool isCameraAutoExposureFaceModeSupported() = 0;
9664 virtual int setCameraAutoExposureFaceModeEnabled(
bool enabled) = 0;
9692 virtual int setCameraStabilizationMode(CAMERA_STABILIZATION_MODE mode) = 0;
9725 virtual int setDefaultAudioRouteToSpeakerphone(
bool defaultToSpeaker) = 0;
9755 virtual int setEnableSpeakerphone(
bool speakerOn) = 0;
9770 virtual bool isSpeakerphoneEnabled() = 0;
9800 virtual int setRouteInCommunicationMode(
int route) = 0;
9801 #endif // __ANDROID__ || (__APPLE__ && TARGET_OS_IOS) || __OHOS__
9803 #if defined(__APPLE__)
9820 virtual bool isCameraCenterStageSupported() = 0;
9859 virtual int enableCameraCenterStage(
bool enabled) = 0;
9862 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)|| (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
9895 virtual IScreenCaptureSourceList* getScreenCaptureSources(
const SIZE& thumbSize,
const SIZE& iconSize,
const bool includeScreen) = 0;
9896 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
9897 #if (defined(__APPLE__) && TARGET_OS_IOS)
9921 virtual int setAudioSessionOperationRestriction(AUDIO_SESSION_OPERATION_RESTRICTION restriction) = 0;
9922 #endif // __APPLE__ && TARGET_OS_IOS
9924 #if defined(_WIN32) || (defined(__APPLE__) && !TARGET_OS_IPHONE && TARGET_OS_MAC) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
9962 virtual int startScreenCaptureByDisplayId(int64_t displayId,
const Rectangle& regionRect,
9965 #endif // __APPLE__ && TARGET_OS_MAC && !TARGET_OS_IPHONE
10007 virtual int startScreenCaptureByScreenRect(
const Rectangle& screenRect,
10012 #if defined(__ANDROID__)
10033 virtual int getAudioDeviceInfo(
DeviceInfo& deviceInfo) = 0;
10034 #endif // __ANDROID__
10036 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
10108 virtual int startScreenCaptureByWindowId(int64_t windowId,
const Rectangle& regionRect,
10131 virtual int setScreenCaptureContentHint(VIDEO_CONTENT_HINT contentHint) = 0;
10151 virtual int updateScreenCaptureRegion(
const Rectangle& regionRect) = 0;
10173 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
10175 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
10257 virtual int updateScreenCapture(
const ScreenCaptureParameters2& captureParams) = 0;
10279 virtual int queryScreenCaptureCapability() = 0;
10310 #if defined(__ANDROID__)
10342 virtual int setExternalMediaProjection(
void* mediaProjection) = 0;
10346 #if defined(_WIN32) || defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && !defined(__ANDROID__) && !defined (__OHOS__))
10363 virtual int setScreenCaptureScenario(SCREEN_SCENARIO_TYPE screenScenario) = 0;
10380 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC) || __ANDROID__
10415 virtual int rate(
const char* callId,
int rating,
const char* description) = 0;
10435 virtual int complain(
const char* callId,
const char* description) = 0;
10858 virtual int setRemoteUserPriority(uid_t uid, PRIORITY_TYPE userPriority) = 0;
11028 virtual int sendRdtMessage(uid_t uid, RdtStreamType type,
const char *data,
size_t length) = 0;
11265 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;
11908 virtual
int startRhythmPlayer(const
char* sound1, const
char* sound2, const AgoraRhythmPlayerConfig& config) = 0;
12370 enum QUALITY_REPORT_FORMAT_TYPE {
12373 QUALITY_REPORT_JSON = 0,
12376 QUALITY_REPORT_HTML = 1,
12382 enum MEDIA_DEVICE_STATE_TYPE {
12386 MEDIA_DEVICE_STATE_IDLE = 0,
12390 MEDIA_DEVICE_STATE_ACTIVE = 1,
12394 MEDIA_DEVICE_STATE_DISABLED = 2,
12399 MEDIA_DEVICE_STATE_PLUGGED_IN = 3,
12404 MEDIA_DEVICE_STATE_NOT_PRESENT = 4,
12408 MEDIA_DEVICE_STATE_UNPLUGGED = 8
12411 enum VIDEO_PROFILE_TYPE {
12413 VIDEO_PROFILE_LANDSCAPE_120P = 0,
12415 VIDEO_PROFILE_LANDSCAPE_120P_3 = 2,
12417 VIDEO_PROFILE_LANDSCAPE_180P = 10,
12419 VIDEO_PROFILE_LANDSCAPE_180P_3 = 12,
12421 VIDEO_PROFILE_LANDSCAPE_180P_4 = 13,
12423 VIDEO_PROFILE_LANDSCAPE_240P = 20,
12425 VIDEO_PROFILE_LANDSCAPE_240P_3 = 22,
12427 VIDEO_PROFILE_LANDSCAPE_240P_4 = 23,
12429 VIDEO_PROFILE_LANDSCAPE_360P = 30,
12431 VIDEO_PROFILE_LANDSCAPE_360P_3 = 32,
12433 VIDEO_PROFILE_LANDSCAPE_360P_4 = 33,
12435 VIDEO_PROFILE_LANDSCAPE_360P_6 = 35,
12437 VIDEO_PROFILE_LANDSCAPE_360P_7 = 36,
12439 VIDEO_PROFILE_LANDSCAPE_360P_8 = 37,
12441 VIDEO_PROFILE_LANDSCAPE_360P_9 = 38,
12443 VIDEO_PROFILE_LANDSCAPE_360P_10 = 39,
12445 VIDEO_PROFILE_LANDSCAPE_360P_11 = 100,
12447 VIDEO_PROFILE_LANDSCAPE_480P = 40,
12449 VIDEO_PROFILE_LANDSCAPE_480P_3 = 42,
12451 VIDEO_PROFILE_LANDSCAPE_480P_4 = 43,
12453 VIDEO_PROFILE_LANDSCAPE_480P_6 = 45,
12455 VIDEO_PROFILE_LANDSCAPE_480P_8 = 47,
12457 VIDEO_PROFILE_LANDSCAPE_480P_9 = 48,
12459 VIDEO_PROFILE_LANDSCAPE_480P_10 = 49,
12461 VIDEO_PROFILE_LANDSCAPE_720P = 50,
12463 VIDEO_PROFILE_LANDSCAPE_720P_3 = 52,
12465 VIDEO_PROFILE_LANDSCAPE_720P_5 = 54,
12467 VIDEO_PROFILE_LANDSCAPE_720P_6 = 55,
12469 VIDEO_PROFILE_LANDSCAPE_1080P = 60,
12471 VIDEO_PROFILE_LANDSCAPE_1080P_3 = 62,
12473 VIDEO_PROFILE_LANDSCAPE_1080P_5 = 64,
12475 VIDEO_PROFILE_LANDSCAPE_1440P = 66,
12477 VIDEO_PROFILE_LANDSCAPE_1440P_2 = 67,
12479 VIDEO_PROFILE_LANDSCAPE_4K = 70,
12481 VIDEO_PROFILE_LANDSCAPE_4K_3 = 72,
12483 VIDEO_PROFILE_PORTRAIT_120P = 1000,
12485 VIDEO_PROFILE_PORTRAIT_120P_3 = 1002,
12487 VIDEO_PROFILE_PORTRAIT_180P = 1010,
12489 VIDEO_PROFILE_PORTRAIT_180P_3 = 1012,
12491 VIDEO_PROFILE_PORTRAIT_180P_4 = 1013,
12493 VIDEO_PROFILE_PORTRAIT_240P = 1020,
12495 VIDEO_PROFILE_PORTRAIT_240P_3 = 1022,
12497 VIDEO_PROFILE_PORTRAIT_240P_4 = 1023,
12499 VIDEO_PROFILE_PORTRAIT_360P = 1030,
12501 VIDEO_PROFILE_PORTRAIT_360P_3 = 1032,
12503 VIDEO_PROFILE_PORTRAIT_360P_4 = 1033,
12505 VIDEO_PROFILE_PORTRAIT_360P_6 = 1035,
12507 VIDEO_PROFILE_PORTRAIT_360P_7 = 1036,
12509 VIDEO_PROFILE_PORTRAIT_360P_8 = 1037,
12511 VIDEO_PROFILE_PORTRAIT_360P_9 = 1038,
12513 VIDEO_PROFILE_PORTRAIT_360P_10 = 1039,
12515 VIDEO_PROFILE_PORTRAIT_360P_11 = 1100,
12517 VIDEO_PROFILE_PORTRAIT_480P = 1040,
12519 VIDEO_PROFILE_PORTRAIT_480P_3 = 1042,
12521 VIDEO_PROFILE_PORTRAIT_480P_4 = 1043,
12523 VIDEO_PROFILE_PORTRAIT_480P_6 = 1045,
12525 VIDEO_PROFILE_PORTRAIT_480P_8 = 1047,
12527 VIDEO_PROFILE_PORTRAIT_480P_9 = 1048,
12529 VIDEO_PROFILE_PORTRAIT_480P_10 = 1049,
12531 VIDEO_PROFILE_PORTRAIT_720P = 1050,
12533 VIDEO_PROFILE_PORTRAIT_720P_3 = 1052,
12535 VIDEO_PROFILE_PORTRAIT_720P_5 = 1054,
12537 VIDEO_PROFILE_PORTRAIT_720P_6 = 1055,
12539 VIDEO_PROFILE_PORTRAIT_1080P = 1060,
12541 VIDEO_PROFILE_PORTRAIT_1080P_3 = 1062,
12543 VIDEO_PROFILE_PORTRAIT_1080P_5 = 1064,
12545 VIDEO_PROFILE_PORTRAIT_1440P = 1066,
12547 VIDEO_PROFILE_PORTRAIT_1440P_2 = 1067,
12549 VIDEO_PROFILE_PORTRAIT_4K = 1070,
12551 VIDEO_PROFILE_PORTRAIT_4K_3 = 1072,
12553 VIDEO_PROFILE_DEFAULT = VIDEO_PROFILE_LANDSCAPE_360P,
12578 #define getAgoraRtcEngineVersion getAgoraSdkVersion
12606 #define getAgoraRtcEngineErrorDescription getAgoraSdkErrorDescription
12607 #define setAgoraRtcEngineExternalSymbolLoader setAgoraSdkExternalSymbolLoader
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
virtual int setAVSyncSource(const char *channelId, uid_t uid)=0
Sets audio-video synchronization for the sender.
Layout information of a specific sub-video stream within the mixed stream.
Definition: AgoraBase.h:8137
const char * appId
Definition: IAgoraRtcEngine.h:4076
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:3420
virtual int enableInEarMonitoring(bool enabled, int includeAudioFilters)=0
Enables in-ear monitoring.
virtual void onRtmpStreamingEvent(const char *url, RTMP_STREAMING_EVENT eventCode)
Reports events during the Media Push.
Definition: IAgoraRtcEngine.h:3189
virtual void onExtensionErrorWithContext(const ExtensionContext &context, int error, const char *message)
Occurs when the extension runs incorrectly.
Definition: IAgoraRtcEngine.h:3644
int regulatedCaptureFrameHeight
Definition: IAgoraRtcEngine.h:355
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:7570
int publishDuration
Definition: IAgoraRtcEngine.h:655
Filter effect options.
Definition: AgoraBase.h:5719
virtual int stopDirectCdnStreaming()=0
Stops pushing media streams to the CDN directly.
Results of the uplink and downlink last-mile network tests.
Definition: AgoraBase.h:5017
Observer settings for the encoded audio.
Definition: AgoraBase.h:6809
Screen sharing configurations.
Definition: AgoraBase.h:6475
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.
The volume information of users.
Definition: AgoraBase.h:3974
int e2eDelay
Definition: IAgoraRtcEngine.h:593
int audioChannels
Definition: IAgoraRtcEngine.h:780
@ SAVE
Definition: IAgoraRtcEngine.h:3899
int regulatedCaptureFrameWidth
Definition: IAgoraRtcEngine.h:349
virtual int pauseEffect(int soundId)=0
Pauses a specified audio effect file.
Image enhancement options.
Definition: AgoraBase.h:5396
Definition: AgoraBase.h:1342
virtual int muteLocalVideoStream(bool mute)=0
Stops or resumes publishing the local video stream.
IRtcEngineEventHandler * eventHandler
Definition: IAgoraRtcEngine.h:4069
virtual int stopPreview(VIDEO_SOURCE_TYPE sourceType)=0
Stops the local video preview.
virtual int startScreenCapture(VIDEO_SOURCE_TYPE sourceType, const ScreenCaptureConfiguration &config)=0
Starts screen capture from the specified video source.
virtual void onIntraRequestReceived()
Definition: IAgoraRtcEngine.h:2122
Definition: IAgoraRtcEngine.h:670
int canvasHeight
Definition: IAgoraRtcEngine.h:719
virtual int setVoiceConversionPreset(VOICE_CONVERSION_PRESET preset)=0
Sets a preset voice beautifier effect.
int videoHeight
Definition: IAgoraRtcEngine.h:4358
Configurations of the last-mile network test.
Definition: AgoraBase.h:4948
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:1983
virtual int joinChannel(const char *token, const char *channelId, uid_t uid, const ChannelMediaOptions &options)=0
Joins a channel with media options.
virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason)
Occurs when the state of virtual metronome changes.
Definition: IAgoraRtcEngine.h:2724
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:4400
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:2787
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:2230
uid_t uid
Definition: IAgoraRtcEngine.h:315
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:2057
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:4129
virtual int registerAudioEncodedFrameObserver(const AudioEncodedFrameObserverConfig &config, IAudioEncodedFrameObserver *observer)=0
Registers an encoded audio observer.
uint32_t frozenTimeByCustom
Definition: IAgoraRtcEngine.h:517
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.
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:3278
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:2980
virtual void release()=0
Releases all the resources occupied by the IVideoDeviceCollection object.
virtual IVideoDeviceCollection * enumerateVideoDevices()=0
Enumerates the video devices.
bool stopAudioMixing
Definition: IAgoraRtcEngine.h:1764
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:2324
int videoWidth
Definition: IAgoraRtcEngine.h:4353
const char * publishUrl
Definition: IAgoraRtcEngine.h:856
virtual int enableVoiceAITuner(bool enabled, VOICE_AI_TUNER_TYPE type)=0
Enables or disables the voice AI tuner.
Definition: IAgoraRtcEngine.h:4524
virtual void onVideoRenderingTracingResult(uid_t uid, MEDIA_TRACE_EVENT currentEvent, VideoRenderingTracingInfo tracingInfo)
Video frame rendering event callback.
Definition: IAgoraRtcEngine.h:3441
uid_t remoteUid
Definition: IAgoraRtcEngine.h:4535
int lifecycle
Definition: IAgoraRtcEngine.h:838
virtual int startPreview()=0
Enables the local video preview.
virtual void onLocalAudioStats(const LocalAudioStats &stats)
Reports the statistics of the local audio stream.
Definition: IAgoraRtcEngine.h:2546
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.
virtual void onCameraExposureAreaChanged(int x, int y, int width, int height)
Occurs when the camera exposure area changes.
Definition: IAgoraRtcEngine.h:2625
Configuration for the Local Access Point.
Definition: AgoraBase.h:7872
virtual void onClientRoleChangeFailed(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole)
Occurs when switching a user role fails.
Definition: IAgoraRtcEngine.h:3134
virtual int getDevice(int index, char deviceNameUTF8[MAX_DEVICE_ID_LENGTH], char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
int videoBitrate
Definition: IAgoraRtcEngine.h:4368
virtual void onLastmileQuality(int quality)
Reports the last-mile network quality of the local user.
Definition: IAgoraRtcEngine.h:2153
virtual int enableInstantMediaRendering()=0
Enables audio and video frame instant rendering.
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.
Transcoding configurations for Media Push.
Definition: AgoraBase.h:4553
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:3302
VIDEO_EFFECT_ACTION
Actions that can be performed on video effect nodes.
Definition: IAgoraRtcEngine.h:3895
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:2342
virtual int setDirectCdnStreamingVideoConfiguration(const VideoEncoderConfiguration &config)=0
Sets the video profile of the media streams directly pushed to the CDN by the host.
virtual int createDataStream(int *streamId, bool reliable, bool ordered)=0
Creates a data stream.
virtual void release()=0
Releases all the resources occupied by the IVideoDeviceManager object.
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:3409
virtual void onNetworkTypeChanged(NETWORK_TYPE type)
Occurs when the local network type changes.
Definition: IAgoraRtcEngine.h:3338
virtual void onFirstRemoteAudioDecoded(uid_t uid, int elapsed) __deprecated
Occurs when the SDK decodes the first remote audio frame for playback.
Definition: IAgoraRtcEngine.h:2964
int videoFramerate
Definition: IAgoraRtcEngine.h:765
virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode, const SimulcastStreamConfig &streamConfig)=0
Sets dual-stream mode configuration on the sender side.
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.
virtual int updateLocalTranscoderConfiguration(const LocalTranscoderConfiguration &config)=0
Updates the local video mixing configuration.
virtual int registerPacketObserver(IPacketObserver *observer)=0
Registers a packet observer.
int networkTransportDelay
Definition: IAgoraRtcEngine.h:447
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:3459
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.
virtual int disableAudioSpectrumMonitor()=0
Disables audio spectrum monitoring.
virtual void onFirstLocalAudioFramePublished(int elapsed)
Occurs when the first audio frame is published.
Definition: IAgoraRtcEngine.h:2939
Definition: AgoraBase.h:100
int sentBitrate
Definition: IAgoraRtcEngine.h:320
virtual int getAudioMixingPublishVolume()=0
Retrieves the audio mixing volume for publishing.
virtual int addVideoWatermark(const char *watermarkUrl, const WatermarkOptions &options)=0
Adds a watermark image to the local video.
virtual void onRejoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Occurs when a user rejoins the channel.
Definition: IAgoraRtcEngine.h:1837
int fps
Definition: IAgoraRtcEngine.h:1235
int totalFrozenTime
Definition: IAgoraRtcEngine.h:634
virtual void onMultipathStats(const MultipathStats &stats)
Report the multipath transmission statistics.
Definition: IAgoraRtcEngine.h:3668
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:2057
Definition: IAgoraRtcEngine.h:1791
double height
Definition: IAgoraRtcEngine.h:686
virtual int leaveChannel(const LeaveChannelOptions &options)=0
Sets channel options and leaves the channel.
virtual int getDevice(char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
Retrieves the current video capture device.
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle, int startPos)=0
Starts playing the music file.
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:2444
Video subscription options.
Definition: AgoraBase.h:1705
virtual int registerLocalUserAccount(const char *appId, const char *userAccount)=0
Registers a user account.
virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo &info)
Occurs when the uplink network information changes.
Definition: IAgoraRtcEngine.h:2136
The configuration of the audio and video call loop test.
Definition: AgoraBase.h:7512
Image properties.
Definition: AgoraBase.h:4358
const char * backgroundColor
Definition: IAgoraRtcEngine.h:722
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.
int encodedBitrate
Definition: IAgoraRtcEngine.h:390
QUALITY_ADAPT_INDICATION qualityAdaptIndication
Definition: IAgoraRtcEngine.h:385
virtual int enableDualStreamMode(bool enabled, const SimulcastStreamConfig &streamConfig) __deprecated=0
Sets the dual-stream mode on the sender side and the low-quality video stream.
The configuration of the low-quality video stream.
Definition: AgoraBase.h:2230
virtual void onConnectionInterrupted() __deprecated
Occurs when the connection between the SDK and the server is interrupted.
Definition: IAgoraRtcEngine.h:2761
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.
virtual int getVolumeOfEffect(int soundId)=0
Gets the volume of a specified audio effect file.
The facial enhancement style options.
Definition: AgoraBase.h:5675
virtual int setSubscribeAudioAllowlist(uid_t *uidList, int uidNumber)=0
Sets the allowlist of subscriptions for audio streams.
virtual CONNECTION_STATE_TYPE getConnectionState()=0
Gets the current connection state of the SDK.
const char * channelId
Definition: IAgoraRtcEngine.h:4548
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 setExtensionProperty(const char *provider, const char *extension, const char *key, const char *value, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
Sets the properties of the extension.
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.
virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config)=0
Enables or disables video screenshot and upload.
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:3025
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.
virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel, int samplesPerCall)=0
Sets the format of audio data in the onPlaybackAudioFrameBeforeMixing callback.
The context information of the extension.
Definition: AgoraMediaBase.h:41
VIDEO_EFFECT_NODE_ID
Types of applicable video effect nodes.
Definition: IAgoraRtcEngine.h:3875
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.
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:1018
virtual void onVideoDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Occurs when the video device state changes.
Definition: IAgoraRtcEngine.h:2074
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:2268
virtual int setVideoEffectBoolParam(const char *option, const char *key, bool param)=0
Sets the boolean parameter for video effects.
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.
virtual void onAudioMixingPositionChanged(int64_t position)
Reports the playback progress of a music file.
Definition: IAgoraRtcEngine.h:2031
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.
virtual int registerMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
Registers the metadata observer.
The color enhancement options.
Definition: AgoraBase.h:5862
int defaultLayout
Definition: IAgoraRtcEngine.h:835
virtual void onTranscodingUpdated()
Occurs when the publisher's transcoding is updated.
Definition: IAgoraRtcEngine.h:3205
virtual int updateRtmpTranscoding(const LiveTranscoding &transcoding)=0
Updates the transcoding configuration.
int64_t displayId
Definition: IAgoraRtcEngine.h:1004
int publishDuration
Definition: IAgoraRtcEngine.h:528
virtual void onRequestToken()
Occurs when the token expires.
Definition: IAgoraRtcEngine.h:2887
virtual void onError(int err, const char *msg)
Reports an error during SDK runtime.
Definition: IAgoraRtcEngine.h:1882
The uplink network information.
Definition: AgoraBase.h:7106
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.
int regionCount
Definition: IAgoraRtcEngine.h:729
agora::media::MEDIA_SOURCE_TYPE mediaSourceType
Definition: IAgoraRtcEngine.h:4528
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:1862
virtual void onExtensionEventWithContext(const ExtensionContext &context, const char *key, const char *value)
The event callback of the extension.
Definition: IAgoraRtcEngine.h:3598
virtual int enableExtension(const char *provider, const char *extension, bool enable=true, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
Enables or disables extensions.
virtual void onUserStateChanged(uid_t uid, REMOTE_USER_STATE state)
Definition: IAgoraRtcEngine.h:2496
int height
Definition: IAgoraRtcEngine.h:821
virtual void onAudioMixingFinished() __deprecated
Occurs when the playback of the local music file finishes.
Definition: IAgoraRtcEngine.h:2046
Definition: IAgoraRtcEngine.h:12563
VIDEO_CODEC_TYPE codecType
Definition: IAgoraRtcEngine.h:398
uid_t localUid
Definition: IAgoraRtcEngine.h:4553
virtual int setSubscribeVideoBlocklist(uid_t *uidList, int uidNumber)=0
Sets the blocklist of subscriptions for video streams.
The configuration of the video mixing on the local client.
Definition: AgoraBase.h:4798
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.
int audioBitrate
Definition: IAgoraRtcEngine.h:777
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:1962
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:2812
Definition: AgoraBase.h:4032
bool dualStreamEnabled
Definition: IAgoraRtcEngine.h:412
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.
The statistics of the current CDN streaming.
Definition: IAgoraRtcEngine.h:4349
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:2422
virtual int registerExtension(const char *provider, const char *extension, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
Registers an extension.
virtual int stopRtmpStream(const char *url)=0
Stops pushing media streams to a CDN.
The configurations for the data stream.
Definition: AgoraBase.h:2185
virtual void onCameraFocusAreaChanged(int x, int y, int width, int height)
Occurs when the camera focus area changes.
Definition: IAgoraRtcEngine.h:2604
double y
Definition: IAgoraRtcEngine.h:680
virtual int stopAudioMixing()=0
Stops playing the music file.
@ RESET
Definition: IAgoraRtcEngine.h:3903
Definition: IAgoraRtcEngine.h:813
virtual void onExtensionStartedWithContext(const ExtensionContext &context)
Occurrs when the extension is enabled.
Definition: IAgoraRtcEngine.h:3613
virtual int setLogLevel(commons::LOG_LEVEL level)=0
Sets the output log level of the SDK.
commons::LogConfig logConfig
Definition: IAgoraRtcEngine.h:4124
virtual int setRemoteDefaultVideoStreamType(VIDEO_STREAM_TYPE streamType)=0
Sets the default video stream type to subscribe to.
The configurations for mixing the lcoal audio.
Definition: AgoraBase.h:4923
virtual int setRemoteVideoStreamType(uid_t uid, VIDEO_STREAM_TYPE streamType)=0
Sets the video stream type to subscribe to.
virtual void onUserEnableVideo(uid_t uid, bool enabled)
Occurs when a remote user enables or disables the video module.
Definition: IAgoraRtcEngine.h:2486
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:3175
int height
Definition: IAgoraRtcEngine.h:757
virtual int destroyVideoEffectObject(agora_refptr< IVideoEffectObject > videoEffectObject)=0
Destroys a video effect object.
virtual int startRtmpStreamWithTranscoding(const char *url, const LiveTranscoding &transcoding)=0
Starts Media Push and sets the transcoding configuration.
virtual int setVideoEncoderConfiguration(const VideoEncoderConfiguration &config)=0
Sets the video encoder configuration.
The advanced options for audio.
Definition: IAgoraRtcEngine.h:1209
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.
virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode) __deprecated=0
virtual int pauseAllChannelMediaRelay()=0
Pauses the media stream relay to all target channels.
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:1905
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.
virtual int takeSnapshot(uid_t uid, const char *filePath)=0
Takes a snapshot of a video stream.
const char * license
Definition: IAgoraRtcEngine.h:4091
Rectangle regionRect
Definition: IAgoraRtcEngine.h:1025
int canvasWidth
Definition: IAgoraRtcEngine.h:714
virtual int sendMediaControlMessage(uid_t uid, const char *data, size_t length)=0
Send media control message.
bool stopMicrophoneRecording
Definition: IAgoraRtcEngine.h:1776
const char * rawStreamUrl
Definition: IAgoraRtcEngine.h:860
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:2577
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.
virtual void onTokenPrivilegeWillExpire(const char *token)
Occurs when the token expires in 30 seconds.
Definition: IAgoraRtcEngine.h:2909
int targetFrameRate
Definition: IAgoraRtcEngine.h:380
int audioBitrate
Definition: IAgoraRtcEngine.h:4373
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:4086
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:3255
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:3057
virtual void onAudioDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Occurs when the audio device state changes.
Definition: IAgoraRtcEngine.h:2011
Definition: AgoraBase.h:6826
The options for leaving a channel.
Definition: IAgoraRtcEngine.h:1758
virtual void onRemoteAudioStats(const RemoteAudioStats &stats)
Reports the transport-layer statistics of each remote audio stream.
Definition: IAgoraRtcEngine.h:2533
virtual int setEffectsVolume(int volume)=0
Sets the volume of the audio effects.
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:4363
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:3694
virtual int renewToken(const char *token)=0
Renews the token.
virtual int pauseAudio() __deprecated=0
virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile)=0
Sets audio profiles.
virtual int sendStreamMessage(int streamId, const char *data, size_t length)=0
Sends data stream messages.
unsigned short txPacketLossRate
Definition: IAgoraRtcEngine.h:403
virtual void onLocalVideoStats(VIDEO_SOURCE_TYPE source, const LocalVideoStats &stats)
Reports the statistics of the local video stream.
Definition: IAgoraRtcEngine.h:2561
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:4148
Video noise reduction options.
Definition: AgoraBase.h:5807
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:4082
virtual int stopLocalAudioMixer()=0
Stops the local audio mixing.
virtual void onActiveSpeaker(uid_t uid)
Occurs when the most active remote speaker is detected.
Definition: IAgoraRtcEngine.h:3049
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:2176
virtual void onJoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Occurs when a user joins a channel.
Definition: IAgoraRtcEngine.h:1817
virtual int startLocalVideoTranscoder(const LocalTranscoderConfiguration &config)=0
Starts the local video mixing.
int audioLossRate
Definition: IAgoraRtcEngine.h:457
int zOrder
Definition: IAgoraRtcEngine.h:690
virtual int queryDeviceScore()=0
Queries device score.
int captureFrameRate
Definition: IAgoraRtcEngine.h:329
The custom background.
Definition: AgoraBase.h:5892
virtual int setParameters(const char *parameters)=0
Provides technical preview functionalities or special customizations by configuring the SDK with JSON...
virtual int muteRemoteVideoStream(uid_t uid, bool mute)=0
Stops or resumes subscribing to the video stream of a specified user.
virtual int setLowlightEnhanceOptions(bool enabled, const LowlightEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets low-light enhancement.
Definition: IAgoraRtcEngine.h:3739
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:1014
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.
int appDataLength
Definition: IAgoraRtcEngine.h:735
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
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:999
int encodedFrameHeight
Definition: IAgoraRtcEngine.h:367
virtual void onAudioMetadataReceived(uid_t uid, const char *metadata, size_t length)
Definition: IAgoraRtcEngine.h:3581
virtual int setLocalVoiceFormant(double formantRatio)=0
Sets the formant ratio to change the timbre of human voice.
Optional< int > audioProcessingChannels
Definition: IAgoraRtcEngine.h:1215
const char * imageUrl
Definition: IAgoraRtcEngine.h:1230
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:5472
int delay __deprecated
Definition: IAgoraRtcEngine.h:588
Optional< const char * > deviceId
Definition: IAgoraRtcEngine.h:954
int quality
Definition: IAgoraRtcEngine.h:443
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 void onConnectionBanned() __deprecated
Occurs when the connection is banned by the Agora server.
Definition: IAgoraRtcEngine.h:2768
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:3352
virtual void onCameraReady() __deprecated
Occurs when the camera turns on and is ready to capture the video.
Definition: IAgoraRtcEngine.h:2591
virtual int getEffectDuration(const char *filePath)=0
Retrieves the duration of the audio effect file.
The codec capability of the SDK.
Definition: AgoraBase.h:2019
Configuration of Agora SDK log files.
Definition: IAgoraLog.h:124
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:3685
bool stopAllEffect
Definition: IAgoraRtcEngine.h:1770
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
AGORA_API agora::rtc::IRtcEngine *AGORA_CALL createAgoraRtcEngine()
Creates one IRtcEngine object.
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.
virtual int startAudioRecording(const AudioRecordingConfiguration &config)=0
bool autoRegisterAgoraExtensions
Definition: IAgoraRtcEngine.h:4156
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.
Aggregates statistics of each network path in multipath transmission.
Definition: AgoraBase.h:2695
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
Definition: IAgoraRtcEngine.h:4382
virtual void onLocalAudioStateChanged(LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reason)
Occurs when the local audio stream state changes.
Definition: IAgoraRtcEngine.h:3001
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:3486
virtual void onVideoStopped() __deprecated
Occurs when the video stops playing.
Definition: IAgoraRtcEngine.h:2691
Built-in encryption configurations.
Definition: AgoraBase.h:7286
virtual int destroyMediaPlayer(agora_refptr< IMediaPlayer > media_player)=0
Destroys the media player instance.
VideoDimensions simulcastDimensions[SimulcastConfig::STREAM_LAYER_COUNT_MAX]
Definition: IAgoraRtcEngine.h:421
virtual int setAudioMixingPosition(int pos)=0
Sets the audio mixing position.
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:3538
int receivedBitrate
Definition: IAgoraRtcEngine.h:605
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:2833
Audio statistics of the remote user.
Definition: IAgoraRtcEngine.h:435
The video streams for local video mixing.
Definition: AgoraBase.h:4721
virtual int enableVideoImageSource(bool enable, const ImageTrackOptions &options)=0
Sets whether to replace the current video feeds with images when publishing video streams.
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.
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:1922
virtual int startDeviceTest(view_t hwnd)=0
virtual int addVideoWatermark(const RtcImage &watermark) __deprecated=0
Adds a watermark image to the local video.
virtual bool getVideoEffectBoolParam(const char *option, const char *key)=0
Gets the boolean parameter in video effects.
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:2741
virtual void onUserMuteVideo(uid_t uid, bool muted)
Occurs when a remote user stops or resumes publishing the video stream.
Definition: IAgoraRtcEngine.h:2466
bool owner
Definition: IAgoraRtcEngine.h:843
virtual int setInEarMonitoringVolume(int volume)=0
Sets the volume of the in-ear monitor.
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.
virtual int stopPreview()=0
Stops the local video preview.
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.
Used to configure watermark-related information.
Definition: AgoraBase.h:2586
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:2249
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:3392
int encodedFrameWidth
Definition: IAgoraRtcEngine.h:363
Statistics of a call session.
Definition: AgoraBase.h:2742
The low-light enhancement options.
Definition: AgoraBase.h:5753
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.
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:3083
virtual int destroyCustomVideoTrack(video_track_id_t video_track_id)=0
Destroys the specified video track.
virtual int setVoiceConversionParameters(VOICE_CONVERSION_PRESET preset, int param1, int param2)=0
@ STREAM_LAYER_COUNT_MAX
Definition: AgoraBase.h:2294
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:2367
virtual int adjustAudioMixingVolume(int volume)=0
Adjusts the volume during audio mixing.
Watermark image configurations.
Definition: AgoraBase.h:2408
Local audio statistics.
Definition: AgoraBase.h:4166
virtual int setLocalRenderTargetFps(VIDEO_SOURCE_TYPE sourceType, int targetFps)=0
Sets the maximum frame rate for rendering local video.
The information about the media streams to be recorded.
Definition: AgoraBase.h:7942
virtual void onAudioDeviceVolumeChanged(MEDIA_DEVICE_TYPE deviceType, int volume, bool muted)
Reports the volume change of the audio device or app.
Definition: IAgoraRtcEngine.h:3155
Configure video streams of different quality levels.
Definition: AgoraBase.h:2258
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:3114
int width
Definition: IAgoraRtcEngine.h:597
AUDIO_SCENARIO_TYPE audioScenario
Definition: IAgoraRtcEngine.h:4097
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:616
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.
int targetBitrate
Definition: IAgoraRtcEngine.h:376
Definition: AgoraRefPtr.h:31
int qualityChangedReason
Definition: IAgoraRtcEngine.h:538
virtual int getCallId(agora::util::AString &callId)=0
Retrieves the call ID.
Definition: IAgoraRtcEngine.h:749
virtual int uploadLogFile(agora::util::AString &requestId)=0
virtual int startMediaRenderingTracing()=0
Enables tracing the video frame rendering process.
VideoFormat format
Definition: IAgoraRtcEngine.h:987
int encodedFrameCount
Definition: IAgoraRtcEngine.h:394
int bitrate
Definition: IAgoraRtcEngine.h:829
int regulatedCaptureFrameRate
Definition: IAgoraRtcEngine.h:343
virtual video_track_id_t createCustomEncodedVideoTrack(const SenderOptions &sender_option)=0
Optional< bool > followEncodeDimensionRatio
Definition: IAgoraRtcEngine.h:983
Configurations for the RtcEngineContext instance.
Definition: IAgoraRtcEngine.h:4065
virtual int unloadAllEffects()=0
Releases a specified preloaded audio effect from the memory.
Provides methods to manage and configure video effects, such as beauty, style makeup,...
Definition: IAgoraRtcEngine.h:3866
Definition: IAgoraRtcEngine.h:4581
virtual int setClientRole(CLIENT_ROLE_TYPE role, const ClientRoleOptions &options)=0
Sets the user role and the audience latency level in a live streaming scenario.
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.
virtual int addVideoWatermark(const WatermarkConfig &configs)=0
Adds a watermark image to the local video.
The configuration of the captured screen.
Definition: IAgoraRtcEngine.h:993
virtual int setAudioMixingDualMonoMode(media::AUDIO_MIXING_DUAL_MONO_MODE mode)=0
Sets the channel mode of the current audio file.
Recording configurations.
Definition: AgoraBase.h:6721
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.
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.
int frameLossRate
Definition: IAgoraRtcEngine.h:620
The video dimension.
Definition: AgoraBase.h:1166
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:3565
int height
Definition: IAgoraRtcEngine.h:601
int captureFrameWidth
Definition: IAgoraRtcEngine.h:333
virtual int setAudioEffectPreset(AUDIO_EFFECT_PRESET preset)=0
Sets an SDK preset audio effect.
static AGORA_CPP_API void release(RtcEngineReleaseCallback callback=nullptr)
Releases the IRtcEngine instance.
bool useExternalEglContext
Definition: IAgoraRtcEngine.h:4138
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.
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 int getNetworkType()=0
Gets the type of the local network connection.
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
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
virtual void onAudioRoutingChanged(int routing)
Occurs when the local audio route changes.
Definition: IAgoraRtcEngine.h:3215
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
CAPTURE_BRIGHTNESS_LEVEL_TYPE captureBrightnessLevel
Definition: IAgoraRtcEngine.h:408
virtual int enableVideo()=0
Enables the video module.
virtual void onExtensionStoppedWithContext(const ExtensionContext &context)
Occurs when the extension is disabled.
Definition: IAgoraRtcEngine.h:3626
virtual int setRemoteUserSpatialAudioParams(uid_t uid, const agora::SpatialAudioParams ¶ms)=0
Sets the spatial audio effect parameters of the remote user.
virtual int setHeadphoneEQParameters(int lowGain, int highGain)=0
Sets the low- and high-frequency parameters of the headphone equalizer.
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:2204
virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType)=0
Stops screen capture from the specified video source.
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:3656
virtual void onDirectCdnStreamingStats(const DirectCdnStreamingStats &stats)
Reports the CDN streaming statistics.
Definition: IAgoraRtcEngine.h:4416
virtual int createDataStream(int *streamId, const DataStreamConfig &config)=0
Creates a data stream.
virtual int initialize(const RtcEngineContext &context)=0
Initializes IRtcEngine.
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:2110
virtual int resumeAudioMixing()=0
Resumes playing and mixing the music file.
Image configurations.
Definition: IAgoraRtcEngine.h:1224
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.
virtual int adjustCustomAudioPublishVolume(track_id_t trackId, int volume)=0
Adjusts the volume of the custom audio track played remotely.
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:3504
virtual int getExtensionProperty(const char *provider, const char *extension, const char *key, char *value, int buf_len, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
Gets detailed information on the extensions.
int jitterBufferDelay
Definition: IAgoraRtcEngine.h:453
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:2344
virtual int setExtensionProviderProperty(const char *provider, const char *key, const char *value)=0
Sets the properties of the extension provider.
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.
int videoGop
Definition: IAgoraRtcEngine.h:761
virtual int setVideoQoEPreference(VIDEO_QOE_PREFERENCE_TYPE qoePreference)=0
Filter effect options.
Definition: AgoraBase.h:5466
The spatial audio parameters.
Definition: AgoraBase.h:8056
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:3366
virtual void onUploadLogResult(const char *requestId, bool success, UPLOAD_ERROR_REASON reason)
Definition: IAgoraRtcEngine.h:3470
int qoeQuality
Definition: IAgoraRtcEngine.h:533
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.
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:2848
virtual video_track_id_t createCustomVideoTrack()=0
Creates a custom video track.
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:1995
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:2398
Definition: IAgoraRtcEngine.h:12556
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:2043
int packetLossRate
Definition: IAgoraRtcEngine.h:624
int hwEncoderAccelerating
Definition: IAgoraRtcEngine.h:418
The audio device information.
Definition: AgoraBase.h:4018
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:2864
Definition: AgoraBase.h:8022
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:371
Indicators during video frame rendering progress.
Definition: AgoraBase.h:7718
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:2704
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:4103
virtual int setSimulcastConfig(const SimulcastConfig &simulcastConfig)=0
Sets the simulcast video stream configuration.
virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error)
Definition: IAgoraRtcEngine.h:2918
The camera capturer preference.
Definition: IAgoraRtcEngine.h:923
virtual int selectAudioTrack(int index)=0
Selects the audio track used during playback.
Statistics of the remote video stream.
Definition: IAgoraRtcEngine.h:576
virtual int startAudioRecording(const char *filePath, int sampleRate, AUDIO_RECORDING_QUALITY_TYPE quality)=0
Starts client-side audio recording and sets the recording sample rate.
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.
Setting of user role properties.
Definition: AgoraBase.h:2999
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.
Rectangle screenRect
Definition: IAgoraRtcEngine.h:1009
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:2517
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:3227
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.
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:3521
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
virtual int startPreview(VIDEO_SOURCE_TYPE sourceType)=0
Enables the local video preview and specifies the video source for the preview.
Attributes of the video canvas object.
Definition: AgoraBase.h:5266
uid_t uid
Definition: IAgoraRtcEngine.h:674
virtual void onConnectionStateChanged(CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason)
Occurs when the network connection state changes.
Definition: IAgoraRtcEngine.h:3320
virtual int getVideoEffectIntParam(const char *option, const char *key)=0
Retrieves integer parameters in video effects.
Processing properties for background images.
Definition: AgoraBase.h:5987
double x
Definition: IAgoraRtcEngine.h:677