Agora Java API Reference for Android
IAgoraRtcEngine.h
1 //
2 // Agora Rtc Engine SDK
3 //
4 // Copyright (c) 2018 Agora.io. All rights reserved.
5 //
6 #pragma once
7 
8 #include "AgoraBase.h"
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"
16 
17 namespace agora {
18 namespace rtm {
19 class IStreamChannel;
20 }
21 namespace rtc {
22 
23 template <typename T>
24 static void SetFrom(Optional<T>* s, const Optional<T>& o) {
25  if (o) {
26  *s = o;
27  }
28 }
29 
30 template <typename T>
31 static void ReplaceBy(Optional<T>* s, const Optional<T>& o) {
32  *s = o;
33 }
34 
35 //class IAudioDeviceManager;
36 
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,
73 };
74 
78 enum AUDIO_MIXING_STATE_TYPE {
80  AUDIO_MIXING_STATE_PLAYING = 710,
82  AUDIO_MIXING_STATE_PAUSED = 711,
84  AUDIO_MIXING_STATE_STOPPED = 713,
87  AUDIO_MIXING_STATE_FAILED = 714,
88 };
89 
93 enum AUDIO_MIXING_REASON_TYPE {
95  AUDIO_MIXING_REASON_CAN_NOT_OPEN = 701,
97  AUDIO_MIXING_REASON_TOO_FREQUENT_CALL = 702,
99  AUDIO_MIXING_REASON_INTERRUPTED_EOF = 703,
101  AUDIO_MIXING_REASON_ONE_LOOP_COMPLETED = 721,
103  AUDIO_MIXING_REASON_ALL_LOOPS_COMPLETED = 723,
105  AUDIO_MIXING_REASON_STOPPED_BY_USER = 724,
107  AUDIO_MIXING_REASON_OK = 0,
108 };
109 
113 enum INJECT_STREAM_STATUS {
117  INJECT_STREAM_STATUS_START_SUCCESS = 0,
121  INJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1,
125  INJECT_STREAM_STATUS_START_UNAUTHORIZED = 2,
129  INJECT_STREAM_STATUS_START_TIMEDOUT = 3,
133  INJECT_STREAM_STATUS_START_FAILED = 4,
137  INJECT_STREAM_STATUS_STOP_SUCCESS = 5,
141  INJECT_STREAM_STATUS_STOP_NOT_FOUND = 6,
145  INJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7,
149  INJECT_STREAM_STATUS_STOP_TIMEDOUT = 8,
153  INJECT_STREAM_STATUS_STOP_FAILED = 9,
157  INJECT_STREAM_STATUS_BROKEN = 10,
158 };
159 
163 enum AUDIO_EQUALIZATION_BAND_FREQUENCY {
167  AUDIO_EQUALIZATION_BAND_31 = 0,
171  AUDIO_EQUALIZATION_BAND_62 = 1,
175  AUDIO_EQUALIZATION_BAND_125 = 2,
179  AUDIO_EQUALIZATION_BAND_250 = 3,
183  AUDIO_EQUALIZATION_BAND_500 = 4,
187  AUDIO_EQUALIZATION_BAND_1K = 5,
191  AUDIO_EQUALIZATION_BAND_2K = 6,
195  AUDIO_EQUALIZATION_BAND_4K = 7,
199  AUDIO_EQUALIZATION_BAND_8K = 8,
203  AUDIO_EQUALIZATION_BAND_16K = 9,
204 };
205 
209 enum AUDIO_REVERB_TYPE {
213  AUDIO_REVERB_DRY_LEVEL = 0,
217  AUDIO_REVERB_WET_LEVEL = 1,
221  AUDIO_REVERB_ROOM_SIZE = 2,
225  AUDIO_REVERB_WET_DELAY = 3,
229  AUDIO_REVERB_STRENGTH = 4,
230 };
231 
232 enum STREAM_FALLBACK_OPTIONS {
236  STREAM_FALLBACK_OPTION_DISABLED = 0,
241  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1,
245  STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2,
246 };
247 
248 enum PRIORITY_TYPE {
251  PRIORITY_HIGH = 50,
254  PRIORITY_NORMAL = 100,
255 };
256 
257 struct RtcConnection;
258 
262 {
266  uid_t uid;
317  QUALITY_ADAPT_INDICATION qualityAdaptIndication;
327  VIDEO_CODEC_TYPE codecType;
331  unsigned short txPacketLossRate;
334  CAPTURE_BRIGHTNESS_LEVEL_TYPE captureBrightnessLevel;
344 };
345 
350 {
354  uid_t uid;
358  int quality;
414  int mosValue;
423  uint32_t plcCount;
424 
445  unsigned int rxAudioBytes;
449  int e2eDelay;
450 
452  : uid(0),
453  quality(0),
456  audioLossRate(0),
457  numChannels(0),
459  receivedBitrate(0),
460  totalFrozenTime(0),
461  frozenRate(0),
462  mosValue(0),
464  plcCount(0),
465  totalActiveTime(0),
466  publishDuration(0),
467  qoeQuality(0),
469  rxAudioBytes(0),
470  e2eDelay(0) {}
471 };
472 
480  uid_t uid;
488  int delay __deprecated;
492  int e2eDelay;
496  int width;
500  int height;
520  VIDEO_STREAM_TYPE rxStreamType;
552  int mosValue;
556  unsigned int rxVideoBytes;
557 };
558 
560  struct Region {
563  uid_t uid;
566  double x; // [0,1]
569  double y; // [0,1]
573  double width; // [0,1]
575  double height; // [0,1]
579  int zOrder; // optional, [0, 100] //0 (default): bottom most, 100: top most
580 
584  double alpha;
585 
586  media::base::RENDER_MODE_TYPE renderMode; // RENDER_MODE_HIDDEN: Crop, RENDER_MODE_FIT: Zoom to fit
587 
588  Region()
589  : uid(0),
590  x(0),
591  y(0),
592  width(0),
593  height(0),
594  zOrder(0),
595  alpha(1.0),
596  renderMode(media::base::RENDER_MODE_HIDDEN) {}
597  };
598 
611  const char* backgroundColor; // e.g. "#C0C0C0" in RGB
615  const Region* regions;
621  const char* appData;
625 
627  : canvasWidth(0),
628  canvasHeight(0),
629  backgroundColor(OPTIONAL_NULLPTR),
630  regions(NULL),
631  regionCount(0),
632  appData(OPTIONAL_NULLPTR),
633  appDataLength(0) {}
634 };
635 
642  int width;
646  int height;
650  int videoGop;
662  AUDIO_SAMPLE_RATE_TYPE audioSampleRate;
670 
671  // width / height default set to 0 means pull the stream with its original
672  // resolution
674  : width(0),
675  height(0),
676  videoGop(30),
677  videoFramerate(15),
678  videoBitrate(400),
679  audioSampleRate(AUDIO_SAMPLE_RATE_48000),
680  audioBitrate(48),
681  audioChannels(1) {}
682 };
683 
686 enum RTMP_STREAM_LIFE_CYCLE_TYPE {
689  RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL = 1,
692  RTMP_STREAM_LIFE_CYCLE_BIND2OWNER = 2,
693 };
694 
701  int width;
705  int height;
713  int bitrate;
727  bool owner;
736  const char* injectStreamUrl;
740  const char* publishUrl;
744  const char* rawStreamUrl;
747  const char* extraInfo;
748 
750  : width(640),
751  height(360),
752  framerate(15),
753  bitrate(500),
754  defaultLayout(1),
755  lifecycle(RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL),
756  owner(true),
759  injectStreamUrl(NULL),
760  publishUrl(NULL),
761  rawStreamUrl(NULL),
762  extraInfo(NULL) {}
763 };
764 
768 enum CAMERA_DIRECTION {
770  CAMERA_REAR = 0,
772  CAMERA_FRONT = 1,
773 };
774 
779 enum CLOUD_PROXY_TYPE {
782  NONE_PROXY = 0,
785  UDP_PROXY = 1,
787 
789  TCP_PROXY = 2,
791 };
792 
796 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS)
797 
800  Optional<CAMERA_DIRECTION> cameraDirection;
801 
802  /*- CAMERA_FOCAL_LENGTH_TYPE.CAMERA_FOCAL_LENGTH_DEFAULT:
803  For iOS, if iPhone/iPad has 3 or 2 back camera, it means combination of triple (wide + ultra wide + telephoto) camera
804  or dual wide(wide + ultra wide) camera.In this situation, you can apply for ultra wide len by set smaller zoom fator
805  and bigger zoom fator for telephoto len.Otherwise, it always means wide back/front camera.
806 
807  - CAMERA_FOCAL_LENGTH_TYPE.CAMERA_FOCAL_LENGTH_WIDE_ANGLE:wide camera
808  - CAMERA_FOCAL_LENGTH_TYPE.CAMERA_FOCAL_LENGTH_ULTRA_WIDE:ultra wide camera
809  - CAMERA_FOCAL_LENGTH_TYPE.CAMERA_FOCAL_LENGTH_TELEPHOTO:telephoto camera*/
810  Optional<CAMERA_FOCAL_LENGTH_TYPE> cameraFocalLengthType;
811 #else
812 
814 #endif
815 
816 #if defined(__ANDROID__)
817 
820  Optional<const char *> cameraId;
821 #endif
822  Optional<bool> followEncodeDimensionRatio;
826 };
836  bool isCaptureWindow; // true - capture window, false - capture display
840  uint32_t displayId;
845  Rectangle screenRect; //Windows only
850  view_t windowId;
863 
865 };
866 
867 #if (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
868 
870 struct SIZE {
873  int width;
876  int height;
877 
878  SIZE() : width(0), height(0) {}
879  SIZE(int ww, int hh) : width(ww), height(hh) {}
880 };
881 #endif
882 
883 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
884 
889 struct ThumbImageBuffer {
893  const char* buffer;
897  unsigned int length;
901  unsigned int width;
905  unsigned int height;
906  ThumbImageBuffer() : buffer(nullptr), length(0), width(0), height(0) {}
907 };
911 enum ScreenCaptureSourceType {
913  ScreenCaptureSourceType_Unknown = -1,
915  ScreenCaptureSourceType_Window = 0,
917  ScreenCaptureSourceType_Screen = 1,
919  ScreenCaptureSourceType_Custom = 2,
920 };
922 struct ScreenCaptureSourceInfo {
926  ScreenCaptureSourceType type;
930  view_t sourceId;
934  const char* sourceName;
938  ThumbImageBuffer thumbImage;
942  ThumbImageBuffer iconImage;
946  const char* processPath;
950  const char* sourceTitle;
956  bool primaryMonitor;
957  bool isOccluded;
961  Rectangle position;
962 #if defined(_WIN32)
963 
966  bool minimizeWindow;
973  view_t sourceDisplayId;
974  ScreenCaptureSourceInfo() : type(ScreenCaptureSourceType_Unknown), sourceId(nullptr), sourceName(nullptr),
975  processPath(nullptr), sourceTitle(nullptr), primaryMonitor(false), isOccluded(false), minimizeWindow(false), sourceDisplayId((view_t)-2) {}
976 #else
977  ScreenCaptureSourceInfo() : type(ScreenCaptureSourceType_Unknown), sourceId(nullptr), sourceName(nullptr), processPath(nullptr), sourceTitle(nullptr), primaryMonitor(false), isOccluded(false) {}
978 #endif
979 };
983 class IScreenCaptureSourceList {
984  protected:
985  virtual ~IScreenCaptureSourceList(){};
986 
987  public:
993  virtual unsigned int getCount() = 0;
1003  virtual ScreenCaptureSourceInfo getSourceInfo(unsigned int index) = 0;
1010  virtual void release() = 0;
1011 };
1012 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
1013 
1021 
1023  ~AdvancedAudioOptions() {}
1024 };
1025 
1027  const char* imageUrl;
1028  int fps;
1029  VIDEO_MIRROR_MODE_TYPE mirrorMode;
1030  ImageTrackOptions() : imageUrl(NULL), fps(1), mirrorMode(VIDEO_MIRROR_MODE_DISABLED) {}
1031 };
1032 
1072 
1073  #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
1074 
1079  Optional<bool> publishScreenCaptureVideo;
1085  Optional<bool> publishScreenCaptureAudio;
1086  #else
1087 
1111  #endif
1112 
1258 
1259  ChannelMediaOptions() {}
1260  ~ChannelMediaOptions() {}
1261 
1262  void SetAll(const ChannelMediaOptions& change) {
1263 #define SET_FROM(X) SetFrom(&X, change.X)
1264 
1265  SET_FROM(publishCameraTrack);
1266  SET_FROM(publishSecondaryCameraTrack);
1267  SET_FROM(publishThirdCameraTrack);
1268  SET_FROM(publishFourthCameraTrack);
1269  SET_FROM(publishMicrophoneTrack);
1270 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
1271  SET_FROM(publishScreenCaptureVideo);
1272  SET_FROM(publishScreenCaptureAudio);
1273 #else
1274  SET_FROM(publishScreenTrack);
1275  SET_FROM(publishSecondaryScreenTrack);
1276  SET_FROM(publishThirdScreenTrack);
1277  SET_FROM(publishFourthScreenTrack);
1278 #endif
1279  SET_FROM(publishTranscodedVideoTrack);
1280  SET_FROM(publishMixedAudioTrack);
1281  SET_FROM(publishLipSyncTrack);
1282  SET_FROM(publishCustomAudioTrack);
1283  SET_FROM(publishCustomAudioTrackId);
1284  SET_FROM(publishCustomVideoTrack);
1285  SET_FROM(publishEncodedVideoTrack);
1286  SET_FROM(publishMediaPlayerAudioTrack);
1287  SET_FROM(publishMediaPlayerVideoTrack);
1288  SET_FROM(autoSubscribeAudio);
1289  SET_FROM(autoSubscribeVideo);
1290  SET_FROM(publishMediaPlayerId);
1292  SET_FROM(clientRoleType);
1293  SET_FROM(audienceLatencyLevel);
1294  SET_FROM(defaultVideoStreamType);
1295  SET_FROM(channelProfile);
1296  SET_FROM(audioDelayMs);
1297  SET_FROM(mediaPlayerAudioDelayMs);
1298  SET_FROM(token);
1299  SET_FROM(enableBuiltInMediaEncryption);
1300  SET_FROM(publishRhythmPlayerTrack);
1301  SET_FROM(customVideoTrackId);
1302  SET_FROM(isAudioFilterable);
1303  SET_FROM(isInteractiveAudience);
1304 #undef SET_FROM
1305  }
1306 
1307  bool operator==(const ChannelMediaOptions& o) const {
1308 #define BEGIN_COMPARE() bool b = true
1309 #define ADD_COMPARE(X) b = (b && (X == o.X))
1310 #define END_COMPARE()
1311 
1312  BEGIN_COMPARE();
1313  ADD_COMPARE(publishCameraTrack);
1314  ADD_COMPARE(publishSecondaryCameraTrack);
1315  ADD_COMPARE(publishThirdCameraTrack);
1316  ADD_COMPARE(publishFourthCameraTrack);
1317  ADD_COMPARE(publishMicrophoneTrack);
1318 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
1319  ADD_COMPARE(publishScreenCaptureVideo);
1320  ADD_COMPARE(publishScreenCaptureAudio);
1321 #else
1322  ADD_COMPARE(publishScreenTrack);
1323  ADD_COMPARE(publishSecondaryScreenTrack);
1324  ADD_COMPARE(publishThirdScreenTrack);
1325  ADD_COMPARE(publishFourthScreenTrack);
1326 #endif
1327  ADD_COMPARE(publishTranscodedVideoTrack);
1328  ADD_COMPARE(publishMixedAudioTrack);
1329  ADD_COMPARE(publishLipSyncTrack);
1330  ADD_COMPARE(publishCustomAudioTrack);
1331  ADD_COMPARE(publishCustomAudioTrackId);
1332  ADD_COMPARE(publishCustomVideoTrack);
1333  ADD_COMPARE(publishEncodedVideoTrack);
1334  ADD_COMPARE(publishMediaPlayerAudioTrack);
1335  ADD_COMPARE(publishMediaPlayerVideoTrack);
1336  ADD_COMPARE(autoSubscribeAudio);
1337  ADD_COMPARE(autoSubscribeVideo);
1338  ADD_COMPARE(publishMediaPlayerId);
1339  ADD_COMPARE(enableAudioRecordingOrPlayout);
1340  ADD_COMPARE(clientRoleType);
1341  ADD_COMPARE(audienceLatencyLevel);
1342  ADD_COMPARE(defaultVideoStreamType);
1343  ADD_COMPARE(channelProfile);
1344  ADD_COMPARE(audioDelayMs);
1345  ADD_COMPARE(mediaPlayerAudioDelayMs);
1346  ADD_COMPARE(token);
1347  ADD_COMPARE(enableBuiltInMediaEncryption);
1348  ADD_COMPARE(publishRhythmPlayerTrack);
1349  ADD_COMPARE(customVideoTrackId);
1350  ADD_COMPARE(isAudioFilterable);
1351  ADD_COMPARE(isInteractiveAudience);
1352  END_COMPARE();
1353 
1354 #undef BEGIN_COMPARE
1355 #undef ADD_COMPARE
1356 #undef END_COMPARE
1357  return b;
1358  }
1359 
1360  ChannelMediaOptions& operator=(const ChannelMediaOptions& replace) {
1361  if (this != &replace) {
1362 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
1363 
1364  REPLACE_BY(publishCameraTrack);
1365  REPLACE_BY(publishSecondaryCameraTrack);
1366  REPLACE_BY(publishThirdCameraTrack);
1367  REPLACE_BY(publishFourthCameraTrack);
1368  REPLACE_BY(publishMicrophoneTrack);
1369 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
1370  REPLACE_BY(publishScreenCaptureVideo);
1371  REPLACE_BY(publishScreenCaptureAudio);
1372 #else
1373  REPLACE_BY(publishScreenTrack);
1374  REPLACE_BY(publishSecondaryScreenTrack);
1375  REPLACE_BY(publishThirdScreenTrack);
1376  REPLACE_BY(publishFourthScreenTrack);
1377 #endif
1378  REPLACE_BY(publishTranscodedVideoTrack);
1379  REPLACE_BY(publishMixedAudioTrack);
1380  REPLACE_BY(publishLipSyncTrack);
1381  REPLACE_BY(publishCustomAudioTrack);
1382  REPLACE_BY(publishCustomAudioTrackId);
1383  REPLACE_BY(publishCustomVideoTrack);
1384  REPLACE_BY(publishEncodedVideoTrack);
1385  REPLACE_BY(publishMediaPlayerAudioTrack);
1386  REPLACE_BY(publishMediaPlayerVideoTrack);
1387  REPLACE_BY(autoSubscribeAudio);
1388  REPLACE_BY(autoSubscribeVideo);
1389  REPLACE_BY(publishMediaPlayerId);
1390  REPLACE_BY(enableAudioRecordingOrPlayout);
1391  REPLACE_BY(clientRoleType);
1392  REPLACE_BY(audienceLatencyLevel);
1393  REPLACE_BY(defaultVideoStreamType);
1394  REPLACE_BY(channelProfile);
1395  REPLACE_BY(audioDelayMs);
1396  REPLACE_BY(mediaPlayerAudioDelayMs);
1397  REPLACE_BY(token);
1398  REPLACE_BY(enableBuiltInMediaEncryption);
1399  REPLACE_BY(publishRhythmPlayerTrack);
1400  REPLACE_BY(customVideoTrackId);
1401  REPLACE_BY(isAudioFilterable);
1402  REPLACE_BY(isInteractiveAudience);
1403 #undef REPLACE_BY
1404  }
1405  return *this;
1406  }
1407 };
1408 
1409 enum PROXY_TYPE {
1412  NONE_PROXY_TYPE = 0,
1415  UDP_PROXY_TYPE = 1,
1418  TCP_PROXY_TYPE = 2,
1421  LOCAL_PROXY_TYPE = 3,
1424  TCP_PROXY_AUTO_FALLBACK_TYPE = 4,
1427  HTTP_PROXY_TYPE = 5,
1430  HTTPS_PROXY_TYPE = 6,
1431 };
1432 
1433 enum FeatureType {
1434  VIDEO_VIRTUAL_BACKGROUND = 1,
1435  VIDEO_BEAUTY_EFFECT = 2,
1436 };
1437 
1460 
1462 };
1463 
1475  public:
1476  virtual ~IRtcEngineEventHandler() {}
1477 
1478  virtual const char* eventHandlerType() const { return "event_handler"; }
1479 
1489  virtual void onJoinChannelSuccess(const char* channel, uid_t uid, int elapsed) {
1490  (void)channel;
1491  (void)uid;
1492  (void)elapsed;
1493  }
1494 
1505  virtual void onRejoinChannelSuccess(const char* channel, uid_t uid, int elapsed) {
1506  (void)channel;
1507  (void)uid;
1508  (void)elapsed;
1509  }
1510 
1518  virtual void onProxyConnected(const char* channel, uid_t uid, PROXY_TYPE proxyType, const char* localProxyIp, int elapsed) {
1519  (void)channel;
1520  (void)uid;
1521  (void)proxyType;
1522  (void)localProxyIp;
1523  (void)elapsed;
1524  }
1525 
1531  virtual void onError(int err, const char* msg) {
1532  (void)err;
1533  (void)msg;
1534  }
1535 
1551  virtual void onAudioQuality(uid_t uid, int quality, unsigned short delay, unsigned short lost) __deprecated {
1552  (void)uid;
1553  (void)quality;
1554  (void)delay;
1555  (void)lost;
1556  }
1557 
1563  virtual void onLastmileProbeResult(const LastmileProbeResult& result) {
1564  (void)result;
1565  }
1566 
1593  virtual void onAudioVolumeIndication(const AudioVolumeInfo* speakers, unsigned int speakerNumber,
1594  int totalVolume) {
1595  (void)speakers;
1596  (void)speakerNumber;
1597  (void)totalVolume;
1598  }
1599 
1608  virtual void onLeaveChannel(const RtcStats& stats) { (void)stats; }
1609 
1617  virtual void onRtcStats(const RtcStats& stats) { (void)stats; }
1618 
1632  virtual void onAudioDeviceStateChanged(const char* deviceId, int deviceType, int deviceState) {
1633  (void)deviceId;
1634  (void)deviceType;
1635  (void)deviceState;
1636  }
1637 
1644  virtual void onAudioMixingPositionChanged(int64_t position) {}
1645 
1652  virtual void onAudioMixingFinished() __deprecated {}
1653 
1661  virtual void onAudioEffectFinished(int soundId) {}
1662 
1672  virtual void onVideoDeviceStateChanged(const char* deviceId, int deviceType, int deviceState) {
1673  (void)deviceId;
1674  (void)deviceType;
1675  (void)deviceState;
1676  }
1677 
1700  virtual void onNetworkQuality(uid_t uid, int txQuality, int rxQuality) {
1701  (void)uid;
1702  (void)txQuality;
1703  (void)rxQuality;
1704  }
1705 
1712  virtual void onIntraRequestReceived() {}
1713 
1724  virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo& info) {
1725  (void)info;
1726  }
1727 
1736  (void)info;
1737  }
1738 
1751  virtual void onLastmileQuality(int quality) { (void)quality; }
1752 
1763  virtual void onFirstLocalVideoFrame(VIDEO_SOURCE_TYPE source, int width, int height, int elapsed) {
1764  (void)source;
1765  (void)width;
1766  (void)height;
1767  (void)elapsed;
1768  }
1769 
1780  virtual void onFirstLocalVideoFramePublished(VIDEO_SOURCE_TYPE source, int elapsed) {
1781  (void)source;
1782  (void)elapsed;
1783  }
1784 
1801  virtual void onFirstRemoteVideoDecoded(uid_t uid, int width, int height, int elapsed) __deprecated {
1802  (void)uid;
1803  (void)width;
1804  (void)height;
1805  (void)elapsed;
1806  }
1807 
1816  virtual void onVideoSizeChanged(VIDEO_SOURCE_TYPE sourceType, uid_t uid, int width, int height, int rotation) {
1817  (void)uid;
1818  (void)width;
1819  (void)height;
1820  (void)rotation;
1821  }
1822 
1849  virtual void onLocalVideoStateChanged(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_STREAM_STATE state, LOCAL_VIDEO_STREAM_REASON reason) {
1850  (void)source;
1851  (void)state;
1852  (void)reason;
1853  }
1854 
1866  virtual void onRemoteVideoStateChanged(uid_t uid, REMOTE_VIDEO_STATE state, REMOTE_VIDEO_STATE_REASON reason, int elapsed) {
1867  (void)uid;
1868  (void)state;
1869  (void)reason;
1870  (void)elapsed;
1871  }
1872 
1880  virtual void onFirstRemoteVideoFrame(uid_t uid, int width, int height, int elapsed) {
1881  (void)uid;
1882  (void)width;
1883  (void)height;
1884  (void)elapsed;
1885  }
1886 
1906  virtual void onUserJoined(uid_t uid, int elapsed) {
1907  (void)uid;
1908  (void)elapsed;
1909  }
1910 
1925  virtual void onUserOffline(uid_t uid, USER_OFFLINE_REASON_TYPE reason) {
1926  (void)uid;
1927  (void)reason;
1928  }
1929 
1942  virtual void onUserMuteAudio(uid_t uid, bool muted) {
1943  (void)uid;
1944  (void)muted;
1945  }
1946 
1961  virtual void onUserMuteVideo(uid_t uid, bool muted) {
1962  (void)uid;
1963  (void)muted;
1964  }
1965 
1978  virtual void onUserEnableVideo(uid_t uid, bool enabled) {
1979  (void)uid;
1980  (void)enabled;
1981  }
1982 
1988  virtual void onUserStateChanged(uid_t uid, REMOTE_USER_STATE state) {
1989  (void)uid;
1990  (void)state;
1991  }
1992 
2003  virtual void onUserEnableLocalVideo(uid_t uid, bool enabled) __deprecated {
2004  (void)uid;
2005  (void)enabled;
2006  }
2007 
2015  virtual void onRemoteAudioStats(const RemoteAudioStats& stats) {
2016  (void)stats;
2017  }
2018 
2026  virtual void onLocalAudioStats(const LocalAudioStats& stats) {
2027  (void)stats;
2028  }
2029 
2043  virtual void onLocalVideoStats(VIDEO_SOURCE_TYPE source, const LocalVideoStats& stats) {
2044  (void)source;
2045  (void)stats;
2046  }
2047 
2056  virtual void onRemoteVideoStats(const RemoteVideoStats& stats) {
2057  (void)stats;
2058  }
2059 
2065  virtual void onCameraReady() __deprecated {}
2066 
2077  virtual void onCameraFocusAreaChanged(int x, int y, int width, int height) {
2078  (void)x;
2079  (void)y;
2080  (void)width;
2081  (void)height;
2082  }
2091  virtual void onCameraExposureAreaChanged(int x, int y, int width, int height) {
2092  (void)x;
2093  (void)y;
2094  (void)width;
2095  (void)height;
2096  }
2097 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS)
2098 
2128  virtual void onFacePositionChanged(int imageWidth, int imageHeight,
2129  const Rectangle* vecRectangle, const int* vecDistance,
2130  int numFaces) {
2131  (void) imageWidth;
2132  (void) imageHeight;
2133  (void) vecRectangle;
2134  (void) vecDistance;
2135  (void) numFaces;
2136  }
2137 #endif
2138 
2145  virtual void onVideoStopped() __deprecated {}
2146 
2154  virtual void onAudioMixingStateChanged(AUDIO_MIXING_STATE_TYPE state, AUDIO_MIXING_REASON_TYPE reason) {
2155  (void)state;
2156  (void)reason;
2157  }
2158 
2167  virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason) {
2168  (void)state;
2169  (void)reason;
2170  }
2171 
2180  virtual void onConnectionLost() {}
2181 
2193  virtual void onConnectionInterrupted() __deprecated {}
2194 
2198  virtual void onConnectionBanned() __deprecated {}
2199 
2211  virtual void onStreamMessage(uid_t uid, int streamId, const char* data, size_t length, uint64_t sentTs) {
2212  (void)uid;
2213  (void)streamId;
2214  (void)data;
2215  (void)length;
2216  (void)sentTs;
2217  }
2218 
2231  virtual void onStreamMessageError(uid_t uid, int streamId, int code, int missed, int cached) {
2232  (void)uid;
2233  (void)streamId;
2234  (void)code;
2235  (void)missed;
2236  (void)cached;
2237  }
2238 
2248  virtual void onRequestToken() {}
2249 
2261  virtual void onTokenPrivilegeWillExpire(const char* token) {
2262  (void)token;
2263  }
2264 
2270  virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error) {
2271  (void)error;
2272  }
2273 
2284  virtual void onFirstLocalAudioFramePublished(int elapsed) {
2285  (void)elapsed;
2286  }
2287 
2304  virtual void onFirstRemoteAudioDecoded(uid_t uid, int elapsed) __deprecated {
2305  (void)uid;
2306  (void)elapsed;
2307  }
2308 
2316  virtual void onFirstRemoteAudioFrame(uid_t uid, int elapsed) __deprecated {
2317  (void)uid;
2318  (void)elapsed;
2319  }
2320 
2335  virtual void onLocalAudioStateChanged(LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reason) {
2336  (void)state;
2337  (void)reason;
2338  }
2339 
2356  virtual void onRemoteAudioStateChanged(uid_t uid, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason, int elapsed) {
2357  (void)uid;
2358  (void)state;
2359  (void)reason;
2360  (void)elapsed;
2361  }
2362 
2376  virtual void onActiveSpeaker(uid_t uid) {
2377  (void)uid;
2378  }
2379 
2384  virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result) { (void)result; }
2385 
2403  virtual void onSnapshotTaken(uid_t uid, const char* filePath, int width, int height, int errCode) {
2404  (void)uid;
2405  (void)filePath;
2406  (void)width;
2407  (void)height;
2408  (void)errCode;
2409  }
2410 
2418  virtual void onClientRoleChanged(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions& newRoleOptions) {
2419  (void)oldRole;
2420  (void)newRole;
2421  (void)newRoleOptions;
2422  }
2423 
2431  virtual void onClientRoleChangeFailed(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole) {
2432  (void)reason;
2433  (void)currentRole;
2434  }
2435 
2443  virtual void onAudioDeviceVolumeChanged(MEDIA_DEVICE_TYPE deviceType, int volume, bool muted) {
2444  (void)deviceType;
2445  (void)volume;
2446  (void)muted;
2447  }
2448 
2460  virtual void onRtmpStreamingStateChanged(const char* url, RTMP_STREAM_PUBLISH_STATE state,
2461  RTMP_STREAM_PUBLISH_REASON reason) {
2462  (void)url;
2463  (void)state;
2464  (void)reason;
2465  }
2466 
2472  virtual void onRtmpStreamingEvent(const char* url, RTMP_STREAMING_EVENT eventCode) {
2473  (void)url;
2474  (void)eventCode;
2475  }
2476 
2487  virtual void onTranscodingUpdated() {}
2488 
2502  virtual void onAudioRoutingChanged(int routing) { (void)routing; }
2503 
2535  virtual void onChannelMediaRelayStateChanged(int state, int code) {
2536  (void)state;
2537  (void)code;
2538  }
2539 
2553  virtual void onLocalPublishFallbackToAudioOnly(bool isFallbackOrRecover) {
2554  (void)isFallbackOrRecover;
2555  }
2556 
2574  virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool isFallbackOrRecover) {
2575  (void)uid;
2576  (void)isFallbackOrRecover;
2577  }
2578 
2593  virtual void onRemoteAudioTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated {
2594  (void)uid;
2595  (void)delay;
2596  (void)lost;
2597  (void)rxKBitRate;
2598  }
2599 
2617  virtual void onRemoteVideoTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated {
2618  (void)uid;
2619  (void)delay;
2620  (void)lost;
2621  (void)rxKBitRate;
2622  }
2623 
2633  CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason) {
2634  (void)state;
2635  (void)reason;
2636  }
2637 
2644  virtual void onWlAccMessage(WLACC_MESSAGE_REASON reason, WLACC_SUGGEST_ACTION action, const char* wlAccMsg) {
2645  (void)reason;
2646  (void)action;
2647  (void)wlAccMsg;
2648  }
2649 
2655  virtual void onWlAccStats(const WlAccStats& currentStats, const WlAccStats& averageStats) {
2656  (void)currentStats;
2657  (void)averageStats;
2658  }
2659 
2669  virtual void onNetworkTypeChanged(NETWORK_TYPE type) {
2670  (void)type;
2671  }
2672 
2680  virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType) {
2681  (void)errorType;
2682  }
2683 
2693  virtual void onPermissionError(PERMISSION_TYPE permissionType) {
2694  (void)permissionType;
2695  }
2696 
2706  virtual void onLocalUserRegistered(uid_t uid, const char* userAccount) {
2707  (void)uid;
2708  (void)userAccount;
2709  }
2710 
2719  virtual void onUserInfoUpdated(uid_t uid, const UserInfo& info) {
2720  (void)uid;
2721  (void)info;
2722  }
2723 
2730  virtual void onUserAccountUpdated(uid_t uid, const char* userAccount){
2731  (void)uid;
2732  (void)userAccount;
2733  }
2734 
2742  virtual void onVideoRenderingTracingResult(uid_t uid, MEDIA_TRACE_EVENT currentEvent, VideoRenderingTracingInfo tracingInfo) {
2743  (void)uid;
2744  (void)currentEvent;
2745  (void)tracingInfo;
2746  }
2747 
2754  virtual void onLocalVideoTranscoderError(const TranscodingVideoStream& stream, VIDEO_TRANSCODER_ERROR error){
2755  (void)stream;
2756  (void)error;
2757  }
2758 
2765  virtual void onUploadLogResult(const char* requestId, bool success, UPLOAD_ERROR_REASON reason) {
2766  (void)requestId;
2767  (void)success;
2768  (void)reason;
2769  }
2770 
2780  virtual void onAudioSubscribeStateChanged(const char* channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState) {
2781  (void)channel;
2782  (void)uid;
2783  (void)oldState;
2784  (void)newState;
2785  (void)elapseSinceLastState;
2786  }
2787 
2797  virtual void onVideoSubscribeStateChanged(const char* channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState) {
2798  (void)channel;
2799  (void)uid;
2800  (void)oldState;
2801  (void)newState;
2802  (void)elapseSinceLastState;
2803  }
2804 
2813  virtual void onAudioPublishStateChanged(const char* channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState) {
2814  (void)channel;
2815  (void)oldState;
2816  (void)newState;
2817  (void)elapseSinceLastState;
2818  }
2819 
2829  virtual void onVideoPublishStateChanged(VIDEO_SOURCE_TYPE source, const char* channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState) {
2830  (void)source;
2831  (void)channel;
2832  (void)oldState;
2833  (void)newState;
2834  (void)elapseSinceLastState;
2835  }
2836 
2846  virtual void onTranscodedStreamLayoutInfo(uid_t uid, int width, int height, int layoutCount,const VideoLayout* layoutlist) {
2847  (void)uid;
2848  (void)width;
2849  (void)height;
2850  (void)layoutCount;
2851  (void)layoutlist;
2852  }
2853 
2862  virtual void onAudioMetadataReceived(uid_t uid, const char* metadata, size_t length) {
2863  (void)uid;
2864  (void)metadata;
2865  (void)length;
2866  }
2867 
2878  virtual void onExtensionEvent(const char* provider, const char* extension, const char* key, const char* value) {
2879  (void)provider;
2880  (void)extension;
2881  (void)key;
2882  (void)value;
2883  }
2884 
2893  virtual void onExtensionStarted(const char* provider, const char* extension) {
2894  (void)provider;
2895  (void)extension;
2896  }
2897 
2906  virtual void onExtensionStopped(const char* provider, const char* extension) {
2907  (void)provider;
2908  (void)extension;
2909  }
2910 
2922  virtual void onExtensionError(const char* provider, const char* extension, int error, const char* message) {
2923  (void)provider;
2924  (void)extension;
2925  (void)error;
2926  (void)message;
2927  }
2928 
2935  virtual void onSetRtmFlagResult(int code) {
2936  (void)code;
2937  }
2938 };
2939 
2944  public:
2945  virtual ~IVideoDeviceCollection() {}
2946 
2952  virtual int getCount() = 0;
2953 
2963  virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
2964 
2975  virtual int getDevice(int index, char deviceNameUTF8[MAX_DEVICE_ID_LENGTH],
2976  char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
2977 
2981  virtual void release() = 0;
2982 };
2983 
2988  public:
2989  virtual ~IVideoDeviceManager() {}
3002 
3013  virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3014 
3023  virtual int getDevice(char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3024 
3025 #if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__)) || \
3026  (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
3027 
3044  virtual int numberOfCapabilities(const char* deviceIdUTF8) = 0;
3045 
3063  virtual int getCapability(const char* deviceIdUTF8, const uint32_t deviceCapabilityNumber, VideoFormat& capability) = 0;
3064 #endif
3065 
3078  virtual int startDeviceTest(view_t hwnd) = 0;
3079 
3086  virtual int stopDeviceTest() = 0;
3087 
3091  virtual void release() = 0;
3092 };
3093 
3108  const char* appId;
3114  void* context;
3118  CHANNEL_PROFILE_TYPE channelProfile;
3119 
3123  const char* license;
3124 
3132  AUDIO_SCENARIO_TYPE audioScenario;
3141  unsigned int areaCode;
3142 
3159 
3164 
3173 
3180 
3187 
3189  : eventHandler(NULL), appId(NULL), context(NULL), channelProfile(CHANNEL_PROFILE_LIVE_BROADCASTING),
3190  license(NULL), audioScenario(AUDIO_SCENARIO_DEFAULT), areaCode(AREA_CODE_GLOB),
3192 };
3193 
3197 public:
3198  virtual ~IMetadataObserver() {}
3199 
3205  {
3212  };
3217  {
3218  INVALID_METADATA_SIZE_IN_BYTE = -1,
3219  DEFAULT_METADATA_SIZE_IN_BYTE = 512,
3220  MAX_METADATA_SIZE_IN_BYTE = 1024
3221  };
3222 
3225  struct Metadata
3226  {
3231  unsigned int uid;
3234  unsigned int size;
3237  unsigned char* buffer;
3241  long long timeStampMs;
3242 
3243  Metadata() : uid(0), size(0), buffer(NULL), timeStampMs(0) {}
3244  };
3245 
3256  virtual int getMaxMetadataSize() { return DEFAULT_METADATA_SIZE_IN_BYTE; }
3257 
3268  virtual bool onReadyToSendMetadata(Metadata &metadata, VIDEO_SOURCE_TYPE source_type) = 0;
3269 
3277  virtual void onMetadataReceived(const Metadata& metadata) = 0;
3278 };
3279 
3280 // The reason codes for media streaming
3281 // GENERATED_JAVA_ENUM_PACKAGE: io.agora.streaming
3282 enum DIRECT_CDN_STREAMING_REASON {
3283  // No error occurs.
3284  DIRECT_CDN_STREAMING_REASON_OK = 0,
3285  // A general error occurs (no specified reason).
3286  DIRECT_CDN_STREAMING_REASON_FAILED = 1,
3287  // Audio publication error.
3288  DIRECT_CDN_STREAMING_REASON_AUDIO_PUBLICATION = 2,
3289  // Video publication error.
3290  DIRECT_CDN_STREAMING_REASON_VIDEO_PUBLICATION = 3,
3291 
3292  DIRECT_CDN_STREAMING_REASON_NET_CONNECT = 4,
3293  // Already exist stream name.
3294  DIRECT_CDN_STREAMING_REASON_BAD_NAME = 5,
3295 };
3296 
3297 // The connection state of media streaming
3298 // GENERATED_JAVA_ENUM_PACKAGE: io.agora.streaming
3299 enum DIRECT_CDN_STREAMING_STATE {
3300 
3301  DIRECT_CDN_STREAMING_STATE_IDLE = 0,
3302 
3303  DIRECT_CDN_STREAMING_STATE_RUNNING = 1,
3304 
3305  DIRECT_CDN_STREAMING_STATE_STOPPED = 2,
3306 
3307  DIRECT_CDN_STREAMING_STATE_FAILED = 3,
3308 
3309  DIRECT_CDN_STREAMING_STATE_RECOVERING = 4,
3310 };
3311 
3320 
3325 
3329  int fps;
3330 
3335 
3340 };
3341 
3347  public:
3348  virtual ~IDirectCdnStreamingEventHandler() {}
3349 
3356  virtual void onDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_REASON reason, const char* message) {
3357  (void)state;
3358  (void)reason;
3359  (void)message;
3360  };
3361 
3362  virtual void onDirectCdnStreamingStats(const DirectCdnStreamingStats& stats) {
3363  (void)stats;
3364  };
3365 };
3366 
3411 
3414 
3415  void SetAll(const DirectCdnStreamingMediaOptions& change) {
3416 #define SET_FROM(X) SetFrom(&X, change.X)
3417  SET_FROM(publishCameraTrack);
3418  SET_FROM(publishMicrophoneTrack);
3419  SET_FROM(publishCustomAudioTrack);
3420  SET_FROM(publishCustomVideoTrack);
3421  SET_FROM(publishMediaPlayerAudioTrack);
3422  SET_FROM(publishMediaPlayerId);
3423  SET_FROM(customVideoTrackId);
3424 #undef SET_FROM
3425  }
3426 
3427  bool operator==(const DirectCdnStreamingMediaOptions& o) const {
3428 #define BEGIN_COMPARE() bool b = true
3429 #define ADD_COMPARE(X) b = (b && (X == o.X))
3430 #define END_COMPARE()
3431 
3432  BEGIN_COMPARE();
3433  ADD_COMPARE(publishCameraTrack);
3434  ADD_COMPARE(publishMicrophoneTrack);
3435  ADD_COMPARE(publishCustomAudioTrack);
3436  ADD_COMPARE(publishCustomVideoTrack);
3437  ADD_COMPARE(publishMediaPlayerAudioTrack);
3438  ADD_COMPARE(customVideoTrackId);
3439  ADD_COMPARE(publishMediaPlayerId);
3440  END_COMPARE();
3441 
3442 #undef BEGIN_COMPARE
3443 #undef ADD_COMPARE
3444 #undef END_COMPARE
3445  return b;
3446  }
3447 
3448  DirectCdnStreamingMediaOptions& operator=(const DirectCdnStreamingMediaOptions& replace) {
3449  if (this != &replace) {
3450 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
3451 
3452  REPLACE_BY(publishCameraTrack);
3453  REPLACE_BY(publishMicrophoneTrack);
3454  REPLACE_BY(publishCustomAudioTrack);
3455  REPLACE_BY(publishCustomVideoTrack);
3456  REPLACE_BY(publishMediaPlayerAudioTrack);
3457  REPLACE_BY(customVideoTrackId);
3458  REPLACE_BY(publishMediaPlayerId);
3459 #undef REPLACE_BY
3460  }
3461  return *this;
3462  }
3463 };
3464 
3472  agora::media::MEDIA_SOURCE_TYPE mediaSourceType;
3473 
3479  uid_t remoteUid;
3480 
3492  const char* channelId;
3493 
3497  uid_t localUid;
3498 
3499  ExtensionInfo() : mediaSourceType(agora::media::UNKNOWN_MEDIA_SOURCE), remoteUid(0), channelId(NULL), localUid(0) {}
3500 };
3501 
3502 class IMediaPlayer;
3503 class IMediaRecorder;
3504 
3512  public:
3535  AGORA_CPP_API static void release(bool sync = false);
3536 
3553  virtual int initialize(const RtcEngineContext& context) = 0;
3554 
3564  virtual int queryInterface(INTERFACE_ID_TYPE iid, void** inter) = 0;
3565 
3566 
3572  virtual const char* getVersion(int* build) = 0;
3573 
3579  virtual const char* getErrorDescription(int code) = 0;
3580 
3590  virtual int queryCodecCapability(CodecCapInfo* codecInfo, int& size) = 0;
3591 
3601  virtual int queryDeviceScore() = 0;
3602 
3640  virtual int preloadChannel(const char* token, const char* channelId, uid_t uid) = 0;
3641 
3681  virtual int preloadChannelWithUserAccount(const char* token, const char* channelId, const char* userAccount) = 0;
3682 
3700  virtual int updatePreloadChannelToken(const char* token) = 0;
3701 
3761  virtual int joinChannel(const char* token, const char* channelId, const char* info, uid_t uid) = 0;
3762 
3830  virtual int joinChannel(const char* token, const char* channelId, uid_t uid, const ChannelMediaOptions& options) = 0;
3831 
3840  virtual int updateChannelMediaOptions(const ChannelMediaOptions& options) = 0;
3841 
3859  virtual int leaveChannel() = 0;
3860 
3880  virtual int leaveChannel(const LeaveChannelOptions& options) = 0;
3881 
3898  virtual int renewToken(const char* token) = 0;
3899 
3918  virtual int setChannelProfile(CHANNEL_PROFILE_TYPE profile) = 0;
3919 
3943  virtual int setClientRole(CLIENT_ROLE_TYPE role) = 0;
3944 
3966  virtual int setClientRole(CLIENT_ROLE_TYPE role, const ClientRoleOptions& options) = 0;
3967 
3987  virtual int startEchoTest() = 0;
3988 
4005  virtual int startEchoTest(int intervalInSeconds) = 0;
4006 
4015  virtual int startEchoTest(const EchoTestConfiguration& config) = 0;
4016 
4023  virtual int stopEchoTest() = 0;
4024 
4025 #if defined(__APPLE__) && TARGET_OS_IOS
4026 
4035  virtual int enableMultiCamera(bool enabled, const CameraCapturerConfiguration& config) = 0;
4036 #endif
4037 
4052  virtual int enableVideo() = 0;
4053 
4063  virtual int disableVideo() = 0;
4064 
4076  virtual int startPreview() = 0;
4077 
4085  virtual int startPreview(VIDEO_SOURCE_TYPE sourceType) = 0;
4086 
4094  virtual int stopPreview() = 0;
4095 
4103  virtual int stopPreview(VIDEO_SOURCE_TYPE sourceType) = 0;
4104 
4138  virtual int startLastmileProbeTest(const LastmileProbeConfig& config) = 0;
4139 
4141  virtual int stopLastmileProbeTest() = 0;
4142 
4160 
4170  virtual int setBeautyEffectOptions(bool enabled, const BeautyOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
4197  virtual int setLowlightEnhanceOptions(bool enabled, const LowlightEnhanceOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
4224  virtual int setVideoDenoiserOptions(bool enabled, const VideoDenoiserOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
4251  virtual int setColorEnhanceOptions(bool enabled, const ColorEnhanceOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
4252 
4285  virtual int enableVirtualBackground(bool enabled, VirtualBackgroundSource backgroundSource, SegmentationProperty segproperty, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
4286 
4309  virtual int setupRemoteVideo(const VideoCanvas& canvas) = 0;
4310 
4327  virtual int setupLocalVideo(const VideoCanvas& canvas) = 0;
4328 
4347  virtual int setVideoScenario(VIDEO_APPLICATION_SCENARIO_TYPE scenarioType) = 0;
4348 
4367  virtual int setVideoQoEPreference(VIDEO_QOE_PREFERENCE_TYPE qoePreference) = 0;
4368 
4382  virtual int enableAudio() = 0;
4383 
4395  virtual int disableAudio() = 0;
4396 
4418  virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile, AUDIO_SCENARIO_TYPE scenario) __deprecated = 0;
4419 
4435  virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile) = 0;
4444  virtual int setAudioScenario(AUDIO_SCENARIO_TYPE scenario) = 0;
4467  virtual int enableLocalAudio(bool enabled) = 0;
4468 
4494  virtual int muteLocalAudioStream(bool mute) = 0;
4495 
4537  virtual int muteAllRemoteAudioStreams(bool mute) = 0;
4538 
4560  virtual int setDefaultMuteAllRemoteAudioStreams(bool mute) __deprecated = 0;
4561 
4578  virtual int muteRemoteAudioStream(uid_t uid, bool mute) = 0;
4579 
4591  virtual int muteLocalVideoStream(bool mute) = 0;
4592 
4617  virtual int enableLocalVideo(bool enabled) = 0;
4618 
4658  virtual int muteAllRemoteVideoStreams(bool mute) = 0;
4659 
4681  virtual int setDefaultMuteAllRemoteVideoStreams(bool mute) __deprecated = 0;
4682 
4692  virtual int setRemoteDefaultVideoStreamType(VIDEO_STREAM_TYPE streamType) = 0;
4693 
4710  virtual int muteRemoteVideoStream(uid_t uid, bool mute) = 0;
4711 
4729  virtual int setRemoteVideoStreamType(uid_t uid, VIDEO_STREAM_TYPE streamType) = 0;
4730 
4741  virtual int setRemoteVideoSubscriptionOptions(uid_t uid, const VideoSubscriptionOptions &options) = 0;
4742 
4757  virtual int setSubscribeAudioBlocklist(uid_t* uidList, int uidNumber) = 0;
4758 
4775  virtual int setSubscribeAudioAllowlist(uid_t* uidList, int uidNumber) = 0;
4776 
4791  virtual int setSubscribeVideoBlocklist(uid_t* uidList, int uidNumber) = 0;
4792 
4809  virtual int setSubscribeVideoAllowlist(uid_t* uidList, int uidNumber) = 0;
4810 
4837  virtual int enableAudioVolumeIndication(int interval, int smooth, bool reportVad) = 0;
4838 
4859  virtual int startAudioRecording(const char* filePath,
4860  AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
4882  virtual int startAudioRecording(const char* filePath,
4883  int sampleRate,
4884  AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
4885 
4904  virtual int startAudioRecording(const AudioRecordingConfiguration& config) = 0;
4905 
4912 
4921  virtual int stopAudioRecording() = 0;
4922 
4934 
4946  virtual int destroyMediaPlayer(agora_refptr<IMediaPlayer> media_player) = 0;
4947 
4959 
4969  virtual int destroyMediaRecorder(agora_refptr<IMediaRecorder> mediaRecorder) = 0;
4970 
5012  virtual int startAudioMixing(const char* filePath, bool loopback, int cycle) = 0;
5013 
5057  virtual int startAudioMixing(const char* filePath, bool loopback, int cycle, int startPos) = 0;
5058 
5067  virtual int stopAudioMixing() = 0;
5068 
5077  virtual int pauseAudioMixing() = 0;
5078 
5087  virtual int resumeAudioMixing() = 0;
5088 
5097  virtual int selectAudioTrack(int index) = 0;
5106  virtual int getAudioTrackCount() = 0;
5107 
5122  virtual int adjustAudioMixingVolume(int volume) = 0;
5123 
5131  virtual int adjustAudioMixingPublishVolume(int volume) = 0;
5132 
5140  virtual int getAudioMixingPublishVolume() = 0;
5141 
5149  virtual int adjustAudioMixingPlayoutVolume(int volume) = 0;
5150 
5158  virtual int getAudioMixingPlayoutVolume() = 0;
5159 
5168  virtual int getAudioMixingDuration() = 0;
5169 
5180 
5190  virtual int setAudioMixingPosition(int pos /*in ms*/) = 0;
5191 
5202  virtual int setAudioMixingDualMonoMode(media::AUDIO_MIXING_DUAL_MONO_MODE mode) = 0;
5203 
5220  virtual int setAudioMixingPitch(int pitch) = 0;
5221 
5237  virtual int setAudioMixingPlaybackSpeed(int speed) = 0;
5238 
5246  virtual int getEffectsVolume() = 0;
5256  virtual int setEffectsVolume(int volume) = 0;
5280  virtual int preloadEffect(int soundId, const char* filePath, int startPos = 0) = 0;
5322  virtual int playEffect(int soundId, const char* filePath, int loopCount, double pitch, double pan, int gain, bool publish = false, int startPos = 0) = 0;
5353  virtual int playAllEffects(int loopCount, double pitch, double pan, int gain, bool publish = false) = 0;
5354 
5364  virtual int getVolumeOfEffect(int soundId) = 0;
5365 
5376  virtual int setVolumeOfEffect(int soundId, int volume) = 0;
5385  virtual int pauseEffect(int soundId) = 0;
5392  virtual int pauseAllEffects() = 0;
5401  virtual int resumeEffect(int soundId) = 0;
5408  virtual int resumeAllEffects() = 0;
5417  virtual int stopEffect(int soundId) = 0;
5424  virtual int stopAllEffects() = 0;
5433  virtual int unloadEffect(int soundId) = 0;
5440  virtual int unloadAllEffects() = 0;
5459  virtual int getEffectDuration(const char* filePath) = 0;
5476  virtual int setEffectPosition(int soundId, int pos) = 0;
5491  virtual int getEffectCurrentPosition(int soundId) = 0;
5504  virtual int enableSoundPositionIndication(bool enabled) = 0;
5505 
5526  virtual int setRemoteVoicePosition(uid_t uid, double pan, double gain) = 0;
5527 
5537  virtual int enableSpatialAudio(bool enabled) = 0;
5538 
5548  virtual int setRemoteUserSpatialAudioParams(uid_t uid, const agora::SpatialAudioParams& params) = 0;
5549 
5587  virtual int setVoiceBeautifierPreset(VOICE_BEAUTIFIER_PRESET preset) = 0;
5588 
5626  virtual int setAudioEffectPreset(AUDIO_EFFECT_PRESET preset) = 0;
5627 
5664  virtual int setVoiceConversionPreset(VOICE_CONVERSION_PRESET preset) = 0;
5665 
5741  virtual int setAudioEffectParameters(AUDIO_EFFECT_PRESET preset, int param1, int param2) = 0;
5742 
5785  virtual int setVoiceBeautifierParameters(VOICE_BEAUTIFIER_PRESET preset,
5786  int param1, int param2) = 0;
5787 
5800  virtual int setVoiceConversionParameters(VOICE_CONVERSION_PRESET preset,
5801  int param1, int param2) = 0;
5802 
5813  virtual int setLocalVoicePitch(double pitch) = 0;
5814 
5825  virtual int setLocalVoiceFormant(double formantRatio) = 0;
5826 
5838  virtual int setLocalVoiceEqualization(AUDIO_EQUALIZATION_BAND_FREQUENCY bandFrequency, int bandGain) = 0;
5839 
5848  virtual int setLocalVoiceReverb(AUDIO_REVERB_TYPE reverbKey, int value) = 0;
5860  virtual int setHeadphoneEQPreset(HEADPHONE_EQUALIZER_PRESET preset) = 0;
5861 
5871  virtual int setHeadphoneEQParameters(int lowGain, int highGain) = 0;
5872 
5888  virtual int setLogFile(const char* filePath) = 0;
5889 
5912  virtual int setLogFilter(unsigned int filter) = 0;
5913 
5930  virtual int setLogLevel(commons::LOG_LEVEL level) = 0;
5931 
5946  virtual int setLogFileSize(unsigned int fileSizeInKBytes) = 0;
5947 
5956  virtual int uploadLogFile(agora::util::AString& requestId) = 0;
5957 
5973  virtual int writeLog(commons::LOG_LEVEL level, const char* fmt, ...) = 0;
5974 
5993  virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode) = 0;
5994 
6015  virtual int setRemoteRenderMode(uid_t uid, media::base::RENDER_MODE_TYPE renderMode,
6016  VIDEO_MIRROR_MODE_TYPE mirrorMode) = 0;
6017 
6018  // The following APIs are either deprecated and going to deleted.
6019 
6037  virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode) __deprecated = 0;
6038 
6050  virtual int setLocalVideoMirrorMode(VIDEO_MIRROR_MODE_TYPE mirrorMode) __deprecated = 0;
6051 
6066  virtual int enableDualStreamMode(bool enabled) __deprecated = 0;
6067 
6084  virtual int enableDualStreamMode(bool enabled, const SimulcastStreamConfig& streamConfig) __deprecated = 0;
6085 
6086 
6100  virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode) = 0;
6101 
6115  virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode, const SimulcastStreamConfig& streamConfig) = 0;
6116 
6131  virtual int enableCustomAudioLocalPlayback(track_id_t trackId, bool enabled) = 0;
6132 
6151  virtual int setRecordingAudioFrameParameters(int sampleRate, int channel,
6152  RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
6153  int samplesPerCall) = 0;
6154 
6174  virtual int setPlaybackAudioFrameParameters(int sampleRate, int channel,
6175  RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
6176  int samplesPerCall) = 0;
6177 
6193  virtual int setMixedAudioFrameParameters(int sampleRate, int channel, int samplesPerCall) = 0;
6194 
6214  virtual int setEarMonitoringAudioFrameParameters(int sampleRate, int channel,
6215  RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
6216  int samplesPerCall) = 0;
6217 
6233  virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel) = 0;
6234 
6245  virtual int enableAudioSpectrumMonitor(int intervalInMS = 100) = 0;
6253  virtual int disableAudioSpectrumMonitor() = 0;
6254 
6280 
6294  virtual int adjustRecordingSignalVolume(int volume) = 0;
6295 
6307  virtual int muteRecordingSignal(bool mute) = 0;
6308 
6322  virtual int adjustPlaybackSignalVolume(int volume) = 0;
6323 
6324  /*
6325  * Adjust the playback volume of the user specified by uid.
6326  *
6327  * You can call this method to adjust the playback volume of the user specified by uid
6328  * in call. If you want to adjust playback volume of the multi user, you can call this
6329  * this method multi times.
6330  *
6331  * @note
6332  * Please call this method after join channel.
6333  * This method adjust the playback volume of specified user.
6334  *
6335  * @param uid Remote user ID.
6336  * @param volume The playback volume of the specified remote user. The value ranges between 0 and 400, including the following:
6337  * 0: Mute.
6338  * 100: (Default) Original volume.
6339  * 400: Four times the original volume with signal-clipping protection.
6340  * @return
6341  * - 0: Success.
6342  * - < 0: Failure.
6343  */
6344  virtual int adjustUserPlaybackSignalVolume(uid_t uid, int volume) = 0;
6345 
6367  virtual int setLocalPublishFallbackOption(STREAM_FALLBACK_OPTIONS option) = 0;
6368 
6384  virtual int setRemoteSubscribeFallbackOption(STREAM_FALLBACK_OPTIONS option) = 0;
6385 
6399  virtual int setHighPriorityUserList(uid_t* uidList, int uidNum, STREAM_FALLBACK_OPTIONS option) = 0;
6400 
6421  virtual int enableExtension(const char* provider, const char* extension, const ExtensionInfo& extensionInfo, bool enable = true) = 0;
6422 
6436  virtual int setExtensionProperty(const char* provider, const char* extension, const ExtensionInfo& extensionInfo, const char* key, const char* value) = 0;
6437 
6452  virtual int getExtensionProperty(const char* provider, const char* extension, const ExtensionInfo& extensionInfo, const char* key, char* value, int buf_len) = 0;
6453 
6472  virtual int enableLoopbackRecording(bool enabled, const char* deviceName = NULL) = 0;
6473 
6474 
6487  virtual int adjustLoopbackSignalVolume(int volume) = 0;
6488 
6495  virtual int getLoopbackRecordingVolume() = 0;
6496 
6508  virtual int enableInEarMonitoring(bool enabled, int includeAudioFilters) = 0;
6509 
6520  virtual int setInEarMonitoringVolume(int volume) = 0;
6521 
6522 #if defined (_WIN32) || defined(__linux__) || defined(__ANDROID__)
6523  virtual int loadExtensionProvider(const char* path, bool unload_after_use = false) = 0;
6524 #endif
6525 
6537  virtual int setExtensionProviderProperty(const char* provider, const char* key, const char* value) = 0;
6538 
6551  virtual int registerExtension(const char* provider, const char* extension, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
6552 
6573  virtual int enableExtension(const char* provider, const char* extension, bool enable=true, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
6574 
6588  const char* provider, const char* extension,
6589  const char* key, const char* value, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
6590 
6605  const char* provider, const char* extension,
6606  const char* key, char* value, int buf_len, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
6607 
6620 
6628  virtual video_track_id_t createCustomVideoTrack() = 0;
6629 
6637  virtual video_track_id_t createCustomEncodedVideoTrack(const SenderOptions& sender_option) = 0;
6638 
6647  virtual int destroyCustomVideoTrack(video_track_id_t video_track_id) = 0;
6648 
6657  virtual int destroyCustomEncodedVideoTrack(video_track_id_t video_track_id) = 0;
6658 
6659 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS)
6660 
6668  virtual int switchCamera() = 0;
6669 
6677  virtual bool isCameraZoomSupported() = 0;
6678 
6686  virtual bool isCameraFaceDetectSupported() = 0;
6687 
6695  virtual bool isCameraTorchSupported() = 0;
6696 
6704  virtual bool isCameraFocusSupported() = 0;
6705 
6713  virtual bool isCameraAutoFocusFaceModeSupported() = 0;
6714 
6724  virtual int setCameraZoomFactor(float factor) = 0;
6725 
6734  virtual int enableFaceDetection(bool enabled) = 0;
6735 
6740  virtual float getCameraMaxZoomFactor() = 0;
6741 
6751  virtual int setCameraFocusPositionInPreview(float positionX, float positionY) = 0;
6752 
6760  virtual int setCameraTorchOn(bool isOn) = 0;
6761 
6769  virtual int setCameraAutoFocusFaceModeEnabled(bool enabled) = 0;
6770 
6782  virtual bool isCameraExposurePositionSupported() = 0;
6783 
6799  virtual int setCameraExposurePosition(float positionXinView, float positionYinView) = 0;
6800 
6813  virtual bool isCameraExposureSupported() = 0;
6814 
6825  virtual int setCameraExposureFactor(float factor) = 0;
6826 
6827 #if defined(__APPLE__)
6828 
6835  virtual bool isCameraAutoExposureFaceModeSupported() = 0;
6836 
6837 
6845  virtual int setCameraAutoExposureFaceModeEnabled(bool enabled) = 0;
6846 
6852  virtual int setCameraStabilizationMode(CAMERA_STABILIZATION_MODE mode) = 0;
6853 #endif
6854 
6888  virtual int setDefaultAudioRouteToSpeakerphone(bool defaultToSpeaker) = 0;
6889 
6916  virtual int setEnableSpeakerphone(bool speakerOn) = 0;
6917 
6925  virtual bool isSpeakerphoneEnabled() = 0;
6926 
6933  virtual int setRouteInCommunicationMode(int route) = 0;
6934 
6935 #endif // __ANDROID__ || (__APPLE__ && TARGET_OS_IOS)
6936 
6937 #if defined(__APPLE__)
6938 
6945  virtual bool isCameraCenterStageSupported() = 0;
6946 
6955  virtual int enableCameraCenterStage(bool enabled) = 0;
6956 #endif
6957 
6958 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
6959 
6969  virtual IScreenCaptureSourceList* getScreenCaptureSources(const SIZE& thumbSize, const SIZE& iconSize, const bool includeScreen) = 0;
6970 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
6971 #if (defined(__APPLE__) && TARGET_OS_IOS)
6972 
6996  virtual int setAudioSessionOperationRestriction(AUDIO_SESSION_OPERATION_RESTRICTION restriction) = 0;
6997 #endif // __APPLE__ && TARGET_OS_IOS
6998 
6999 #if defined(_WIN32) || (defined(__APPLE__) && !TARGET_OS_IPHONE && TARGET_OS_MAC)
7000 
7021  virtual int startScreenCaptureByDisplayId(uint32_t displayId, const Rectangle& regionRect,
7022  const ScreenCaptureParameters& captureParams) = 0;
7023 
7024 #endif // __APPLE__ && TARGET_OS_MAC && !TARGET_OS_IPHONE
7025 
7026 #if defined(_WIN32)
7027 
7050  virtual int startScreenCaptureByScreenRect(const Rectangle& screenRect,
7051  const Rectangle& regionRect,
7052  const ScreenCaptureParameters& captureParams) __deprecated = 0;
7053 #endif
7054 
7055 #if defined(__ANDROID__)
7056 
7062  virtual int getAudioDeviceInfo(DeviceInfo& deviceInfo) = 0;
7063 #endif // __ANDROID__
7064 
7065 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
7066 
7084  virtual int startScreenCaptureByWindowId(view_t windowId, const Rectangle& regionRect,
7085  const ScreenCaptureParameters& captureParams) = 0;
7086 
7102  virtual int setScreenCaptureContentHint(VIDEO_CONTENT_HINT contentHint) = 0;
7103 
7120  virtual int updateScreenCaptureRegion(const Rectangle& regionRect) = 0;
7121 
7135  virtual int updateScreenCaptureParameters(const ScreenCaptureParameters& captureParams) = 0;
7136 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
7137 
7138 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS)
7139 
7148  virtual int startScreenCapture(const ScreenCaptureParameters2& captureParams) = 0;
7149 
7159  virtual int updateScreenCapture(const ScreenCaptureParameters2& captureParams) = 0;
7160 
7172  virtual int queryScreenCaptureCapability() = 0;
7173 
7185  virtual int queryCameraFocalLengthCapability(agora::rtc::FocalLengthInfo* focalLengthInfos, int& size) = 0;
7186 #endif
7187 
7188 #if defined(_WIN32) || defined(__APPLE__) || defined(__ANDROID__)
7189 
7205  virtual int setScreenCaptureScenario(SCREEN_SCENARIO_TYPE screenScenario) = 0;
7206 
7214  virtual int stopScreenCapture() = 0;
7215 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC) || __ANDROID__
7216 
7233  virtual int getCallId(agora::util::AString& callId) = 0;
7234 
7249  virtual int rate(const char* callId, int rating, const char* description) = 0; // 0~10
7250 
7264  virtual int complain(const char* callId, const char* description) = 0;
7265 
7286  virtual int startRtmpStreamWithoutTranscoding(const char* url) = 0;
7287 
7309  virtual int startRtmpStreamWithTranscoding(const char* url, const LiveTranscoding& transcoding) = 0;
7310 
7320  virtual int updateRtmpTranscoding(const LiveTranscoding& transcoding) = 0;
7321 
7322  virtual int startLocalVideoTranscoder(const LocalTranscoderConfiguration& config) = 0;
7323  virtual int updateLocalTranscoderConfiguration(const LocalTranscoderConfiguration& config) = 0;
7324 
7343  virtual int stopRtmpStream(const char* url) = 0;
7344 
7345  virtual int stopLocalVideoTranscoder() = 0;
7355  virtual int startCameraCapture(VIDEO_SOURCE_TYPE sourceType, const CameraCapturerConfiguration& config) = 0;
7356 
7367  virtual int stopCameraCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
7379  virtual int setCameraDeviceOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation) = 0;
7391  virtual int setScreenCaptureOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation) = 0;
7392 
7402  virtual int startScreenCapture(VIDEO_SOURCE_TYPE sourceType, const ScreenCaptureConfiguration& config) = 0;
7403 
7414  virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
7415 
7420  virtual CONNECTION_STATE_TYPE getConnectionState() = 0;
7421 
7422  // The following APIs are not implemented yet.
7423  virtual bool registerEventHandler(IRtcEngineEventHandler* eventHandler) = 0;
7424  virtual bool unregisterEventHandler(IRtcEngineEventHandler* eventHandler) = 0;
7425  virtual int setRemoteUserPriority(uid_t uid, PRIORITY_TYPE userPriority) = 0;
7426 
7438  virtual int registerPacketObserver(IPacketObserver* observer) = 0;
7439 
7462  virtual int setEncryptionMode(const char* encryptionMode) __deprecated = 0;
7463 
7480  virtual int setEncryptionSecret(const char* secret) __deprecated = 0;
7481 
7503  virtual int enableEncryption(bool enabled, const EncryptionConfig& config) = 0;
7504 
7536  virtual int createDataStream(int* streamId, bool reliable, bool ordered) = 0;
7537 
7547  virtual int createDataStream(int* streamId, const DataStreamConfig& config) = 0;
7548 
7579  virtual int sendStreamMessage(int streamId, const char* data, size_t length) = 0;
7580 
7602  virtual int addVideoWatermark(const RtcImage& watermark) __deprecated = 0;
7603 
7629  virtual int addVideoWatermark(const char* watermarkUrl, const WatermarkOptions& options) = 0;
7630 
7638  virtual int clearVideoWatermarks() = 0;
7639 
7640  // The following APIs are either deprecated and going to deleted.
7641 
7650  virtual int pauseAudio() __deprecated = 0;
7659  virtual int resumeAudio() __deprecated = 0;
7660 
7678  virtual int enableWebSdkInteroperability(bool enabled) __deprecated = 0;
7679 
7689  virtual int sendCustomReportMessage(const char* id, const char* category, const char* event, const char* label, int value) = 0;
7690 
7712  virtual int registerMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type) = 0;
7713 
7722  virtual int unregisterMediaMetadataObserver(IMetadataObserver* observer, IMetadataObserver::METADATA_TYPE type) = 0;
7723 
7732  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;
7733 
7737  virtual int stopAudioFrameDump(const char* channel_id, uid_t uid, const char* location) = 0;
7738 
7754  virtual int setAINSMode(bool enabled, AUDIO_AINS_MODE mode) = 0;
7755 
7787  virtual int registerLocalUserAccount(const char* appId, const char* userAccount) = 0;
7788 
7819  virtual int joinChannelWithUserAccount(const char* token, const char* channelId, const char* userAccount) = 0;
7820 
7852  virtual int joinChannelWithUserAccount(const char* token, const char* channelId, const char* userAccount, const ChannelMediaOptions& options) = 0;
7853 
7886  virtual int joinChannelWithUserAccountEx(const char* token, const char* channelId,
7887  const char* userAccount, const ChannelMediaOptions& options,
7888  IRtcEngineEventHandler* eventHandler) = 0;
7889 
7907  virtual int getUserInfoByUserAccount(const char* userAccount, rtc::UserInfo* userInfo) = 0;
7908 
7926  virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo* userInfo) = 0;
7927 
7963 
7992  virtual int stopChannelMediaRelay() = 0;
7993 
8003  virtual int pauseAllChannelMediaRelay() = 0;
8004 
8014  virtual int resumeAllChannelMediaRelay() = 0;
8015 
8028  virtual int setDirectCdnStreamingAudioConfiguration(AUDIO_PROFILE_TYPE profile) = 0;
8029 
8045 
8060  const char* publishUrl, const DirectCdnStreamingMediaOptions& options) = 0;
8061 
8071  virtual int stopDirectCdnStreaming() = 0;
8072 
8085 
8096  virtual int startRhythmPlayer(const char* sound1, const char* sound2, const AgoraRhythmPlayerConfig& config) = 0;
8097 
8104  virtual int stopRhythmPlayer() = 0;
8105 
8114  virtual int configRhythmPlayer(const AgoraRhythmPlayerConfig& config) = 0;
8115 
8145  virtual int takeSnapshot(uid_t uid, const char* filePath) = 0;
8146 
8156  virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config) = 0;
8157  /*
8158  * Adjust the custom audio publish volume by track id.
8159  * @param trackId custom audio track id.
8160  * @param volume The volume, range is [0,100]:
8161  * 0: mute, 100: The original volume
8162  * @return
8163  * - 0: Success.
8164  * - < 0: Failure.
8165  */
8166  virtual int adjustCustomAudioPublishVolume(track_id_t trackId, int volume) = 0;
8167 
8168  /*
8169  * Adjust the custom audio playout volume by track id.
8170  * @param trackId custom audio track id.
8171  * @param volume The volume, range is [0,100]:
8172  * 0: mute, 100: The original volume
8173  * @return
8174  * - 0: Success.
8175  * - < 0: Failure.
8176  */
8177  virtual int adjustCustomAudioPlayoutVolume(track_id_t trackId, int volume) = 0;
8178 
8208  virtual int setCloudProxy(CLOUD_PROXY_TYPE proxyType) = 0;
8217  virtual int setLocalAccessPoint(const LocalAccessPointConfiguration& config) = 0;
8218 
8226  virtual int setAdvancedAudioOptions(AdvancedAudioOptions& options, int sourceType = 0) = 0;
8227 
8238  virtual int setAVSyncSource(const char* channelId, uid_t uid) = 0;
8239 
8246  virtual int enableVideoImageSource(bool enable, const ImageTrackOptions& options) = 0;
8247 
8248  /*
8249  * Get monotonic time in ms which can be used by capture time,
8250  * typical scenario is as follows:
8251  *
8252  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8253  * | // custom audio/video base capture time, e.g. the first audio/video capture time. |
8254  * | int64_t custom_capture_time_base; |
8255  * | |
8256  * | int64_t agora_monotonic_time = getCurrentMonotonicTimeInMs(); |
8257  * | |
8258  * | // offset is fixed once calculated in the begining. |
8259  * | const int64_t offset = agora_monotonic_time - custom_capture_time_base; |
8260  * | |
8261  * | // realtime_custom_audio/video_capture_time is the origin capture time that customer provided.|
8262  * | // actual_audio/video_capture_time is the actual capture time transfered to sdk. |
8263  * | int64_t actual_audio_capture_time = realtime_custom_audio_capture_time + offset; |
8264  * | int64_t actual_video_capture_time = realtime_custom_video_capture_time + offset; |
8265  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8266  *
8267  * @return
8268  * - >= 0: Success.
8269  * - < 0: Failure.
8270  */
8271  virtual int64_t getCurrentMonotonicTimeInMs() = 0;
8272 
8288  virtual int enableWirelessAccelerate(bool enabled) = 0;
8289 
8304  virtual int getNetworkType() = 0;
8305 
8314  virtual int setParameters(const char* parameters) = 0;
8315 
8330  virtual int startMediaRenderingTracing() = 0;
8331 
8345  virtual int enableInstantMediaRendering() = 0;
8346 
8350  virtual uint64_t getNtpWallTimeInMs() = 0;
8351 
8360  virtual bool isFeatureAvailableOnDevice(FeatureType type) = 0;
8361 
8372  virtual int sendAudioMetadata(const char* metadata, size_t length) = 0;
8373 };
8374 
8375 // The following types are either deprecated or not implmented yet.
8376 enum QUALITY_REPORT_FORMAT_TYPE {
8379  QUALITY_REPORT_JSON = 0,
8382  QUALITY_REPORT_HTML = 1,
8383 };
8384 
8386 enum MEDIA_DEVICE_STATE_TYPE {
8389  MEDIA_DEVICE_STATE_IDLE = 0,
8392  MEDIA_DEVICE_STATE_ACTIVE = 1,
8395  MEDIA_DEVICE_STATE_DISABLED = 2,
8398  MEDIA_DEVICE_STATE_NOT_PRESENT = 4,
8401  MEDIA_DEVICE_STATE_UNPLUGGED = 8
8402 };
8403 
8404 enum VIDEO_PROFILE_TYPE { // res fps
8406  VIDEO_PROFILE_LANDSCAPE_120P = 0, // 160x120 15
8408  VIDEO_PROFILE_LANDSCAPE_120P_3 = 2, // 120x120 15
8410  VIDEO_PROFILE_LANDSCAPE_180P = 10, // 320x180 15
8412  VIDEO_PROFILE_LANDSCAPE_180P_3 = 12, // 180x180 15
8414  VIDEO_PROFILE_LANDSCAPE_180P_4 = 13, // 240x180 15
8416  VIDEO_PROFILE_LANDSCAPE_240P = 20, // 320x240 15
8418  VIDEO_PROFILE_LANDSCAPE_240P_3 = 22, // 240x240 15
8420  VIDEO_PROFILE_LANDSCAPE_240P_4 = 23, // 424x240 15
8422  VIDEO_PROFILE_LANDSCAPE_360P = 30, // 640x360 15
8424  VIDEO_PROFILE_LANDSCAPE_360P_3 = 32, // 360x360 15
8426  VIDEO_PROFILE_LANDSCAPE_360P_4 = 33, // 640x360 30
8428  VIDEO_PROFILE_LANDSCAPE_360P_6 = 35, // 360x360 30
8430  VIDEO_PROFILE_LANDSCAPE_360P_7 = 36, // 480x360 15
8432  VIDEO_PROFILE_LANDSCAPE_360P_8 = 37, // 480x360 30
8434  VIDEO_PROFILE_LANDSCAPE_360P_9 = 38, // 640x360 15
8436  VIDEO_PROFILE_LANDSCAPE_360P_10 = 39, // 640x360 24
8438  VIDEO_PROFILE_LANDSCAPE_360P_11 = 100, // 640x360 24
8440  VIDEO_PROFILE_LANDSCAPE_480P = 40, // 640x480 15
8442  VIDEO_PROFILE_LANDSCAPE_480P_3 = 42, // 480x480 15
8444  VIDEO_PROFILE_LANDSCAPE_480P_4 = 43, // 640x480 30
8446  VIDEO_PROFILE_LANDSCAPE_480P_6 = 45, // 480x480 30
8448  VIDEO_PROFILE_LANDSCAPE_480P_8 = 47, // 848x480 15
8450  VIDEO_PROFILE_LANDSCAPE_480P_9 = 48, // 848x480 30
8452  VIDEO_PROFILE_LANDSCAPE_480P_10 = 49, // 640x480 10
8454  VIDEO_PROFILE_LANDSCAPE_720P = 50, // 1280x720 15
8456  VIDEO_PROFILE_LANDSCAPE_720P_3 = 52, // 1280x720 30
8458  VIDEO_PROFILE_LANDSCAPE_720P_5 = 54, // 960x720 15
8460  VIDEO_PROFILE_LANDSCAPE_720P_6 = 55, // 960x720 30
8462  VIDEO_PROFILE_LANDSCAPE_1080P = 60, // 1920x1080 15
8464  VIDEO_PROFILE_LANDSCAPE_1080P_3 = 62, // 1920x1080 30
8466  VIDEO_PROFILE_LANDSCAPE_1080P_5 = 64, // 1920x1080 60
8468  VIDEO_PROFILE_LANDSCAPE_1440P = 66, // 2560x1440 30
8470  VIDEO_PROFILE_LANDSCAPE_1440P_2 = 67, // 2560x1440 60
8472  VIDEO_PROFILE_LANDSCAPE_4K = 70, // 3840x2160 30
8474  VIDEO_PROFILE_LANDSCAPE_4K_3 = 72, // 3840x2160 60
8476  VIDEO_PROFILE_PORTRAIT_120P = 1000, // 120x160 15
8478  VIDEO_PROFILE_PORTRAIT_120P_3 = 1002, // 120x120 15
8480  VIDEO_PROFILE_PORTRAIT_180P = 1010, // 180x320 15
8482  VIDEO_PROFILE_PORTRAIT_180P_3 = 1012, // 180x180 15
8484  VIDEO_PROFILE_PORTRAIT_180P_4 = 1013, // 180x240 15
8486  VIDEO_PROFILE_PORTRAIT_240P = 1020, // 240x320 15
8488  VIDEO_PROFILE_PORTRAIT_240P_3 = 1022, // 240x240 15
8490  VIDEO_PROFILE_PORTRAIT_240P_4 = 1023, // 240x424 15
8492  VIDEO_PROFILE_PORTRAIT_360P = 1030, // 360x640 15
8494  VIDEO_PROFILE_PORTRAIT_360P_3 = 1032, // 360x360 15
8496  VIDEO_PROFILE_PORTRAIT_360P_4 = 1033, // 360x640 30
8498  VIDEO_PROFILE_PORTRAIT_360P_6 = 1035, // 360x360 30
8500  VIDEO_PROFILE_PORTRAIT_360P_7 = 1036, // 360x480 15
8502  VIDEO_PROFILE_PORTRAIT_360P_8 = 1037, // 360x480 30
8504  VIDEO_PROFILE_PORTRAIT_360P_9 = 1038, // 360x640 15
8506  VIDEO_PROFILE_PORTRAIT_360P_10 = 1039, // 360x640 24
8508  VIDEO_PROFILE_PORTRAIT_360P_11 = 1100, // 360x640 24
8510  VIDEO_PROFILE_PORTRAIT_480P = 1040, // 480x640 15
8512  VIDEO_PROFILE_PORTRAIT_480P_3 = 1042, // 480x480 15
8514  VIDEO_PROFILE_PORTRAIT_480P_4 = 1043, // 480x640 30
8516  VIDEO_PROFILE_PORTRAIT_480P_6 = 1045, // 480x480 30
8518  VIDEO_PROFILE_PORTRAIT_480P_8 = 1047, // 480x848 15
8520  VIDEO_PROFILE_PORTRAIT_480P_9 = 1048, // 480x848 30
8522  VIDEO_PROFILE_PORTRAIT_480P_10 = 1049, // 480x640 10
8524  VIDEO_PROFILE_PORTRAIT_720P = 1050, // 720x1280 15
8526  VIDEO_PROFILE_PORTRAIT_720P_3 = 1052, // 720x1280 30
8528  VIDEO_PROFILE_PORTRAIT_720P_5 = 1054, // 720x960 15
8530  VIDEO_PROFILE_PORTRAIT_720P_6 = 1055, // 720x960 30
8532  VIDEO_PROFILE_PORTRAIT_1080P = 1060, // 1080x1920 15
8534  VIDEO_PROFILE_PORTRAIT_1080P_3 = 1062, // 1080x1920 30
8536  VIDEO_PROFILE_PORTRAIT_1080P_5 = 1064, // 1080x1920 60
8538  VIDEO_PROFILE_PORTRAIT_1440P = 1066, // 1440x2560 30
8540  VIDEO_PROFILE_PORTRAIT_1440P_2 = 1067, // 1440x2560 60
8542  VIDEO_PROFILE_PORTRAIT_4K = 1070, // 2160x3840 30
8544  VIDEO_PROFILE_PORTRAIT_4K_3 = 1072, // 2160x3840 60
8546  VIDEO_PROFILE_DEFAULT = VIDEO_PROFILE_LANDSCAPE_360P,
8547 };
8548 
8549 class AAudioDeviceManager : public agora::util::AutoPtr<IAudioDeviceManager> {
8550  public:
8551  AAudioDeviceManager(IRtcEngine* engine) {
8552  queryInterface(engine, AGORA_IID_AUDIO_DEVICE_MANAGER);
8553  }
8554 };
8555 
8556 class AVideoDeviceManager : public agora::util::AutoPtr<IVideoDeviceManager> {
8557  public:
8558  AVideoDeviceManager(IRtcEngine* engine) {
8559  queryInterface(engine, AGORA_IID_VIDEO_DEVICE_MANAGER);
8560  }
8561 };
8562 
8563 } // namespace rtc
8564 } // namespace agora
8565 
8571 #define getAgoraRtcEngineVersion getAgoraSdkVersion
8572 
8574 
8577 
8584 
8586 
8587 
8594 #define getAgoraRtcEngineErrorDescription getAgoraSdkErrorDescription
8595 #define setAgoraRtcEngineExternalSymbolLoader setAgoraSdkExternalSymbolLoader
agora::rtc::IRtcEngine::setDirectCdnStreamingAudioConfiguration
virtual int setDirectCdnStreamingAudioConfiguration(AUDIO_PROFILE_TYPE profile)=0
agora::rtc::IRtcEngine::getErrorDescription
virtual const char * getErrorDescription(int code)=0
agora::rtc::IRtcEngine::enableAudioSpectrumMonitor
virtual int enableAudioSpectrumMonitor(int intervalInMS=100)=0
agora::rtc::IRtcEngine::setSubscribeVideoAllowlist
virtual int setSubscribeVideoAllowlist(uid_t *uidList, int uidNumber)=0
agora::rtc::ScreenCaptureConfiguration::windowId
view_t windowId
Definition: IAgoraRtcEngine.h:850
agora::rtc::IRtcEngine::adjustRecordingSignalVolume
virtual int adjustRecordingSignalVolume(int volume)=0
agora::rtc::IRtcEngine::enableWebSdkInteroperability
virtual int enableWebSdkInteroperability(bool enabled) __deprecated=0
agora::rtc::IRtcEngine::enableSpatialAudio
virtual int enableSpatialAudio(bool enabled)=0
agora::rtc::ChannelMediaOptions::publishMediaPlayerAudioTrack
Optional< bool > publishMediaPlayerAudioTrack
Definition: IAgoraRtcEngine.h:1140
agora::rtc::PublisherConfiguration::extraInfo
const char * extraInfo
Definition: IAgoraRtcEngine.h:747
agora::rtc::IRtcEngine::setAVSyncSource
virtual int setAVSyncSource(const char *channelId, uid_t uid)=0
agora::VideoLayout
Definition: AgoraBase.h:6201
agora::rtc::RtcEngineContext::appId
const char * appId
Definition: IAgoraRtcEngine.h:3108
agora::rtc::IRtcEngine::setSubscribeAudioBlocklist
virtual int setSubscribeAudioBlocklist(uid_t *uidList, int uidNumber)=0
agora::rtc::IRtcEngineEventHandler::onUserAccountUpdated
virtual void onUserAccountUpdated(uid_t uid, const char *userAccount)
Definition: IAgoraRtcEngine.h:2730
agora::rtc::IRtcEngine::enableInEarMonitoring
virtual int enableInEarMonitoring(bool enabled, int includeAudioFilters)=0
agora::rtc::IRtcEngineEventHandler::onRtmpStreamingEvent
virtual void onRtmpStreamingEvent(const char *url, RTMP_STREAMING_EVENT eventCode)
Definition: IAgoraRtcEngine.h:2472
agora::rtc::LocalVideoStats::regulatedCaptureFrameHeight
int regulatedCaptureFrameHeight
Definition: IAgoraRtcEngine.h:295
agora::rtc::IRtcEngine::setEffectPosition
virtual int setEffectPosition(int soundId, int pos)=0
agora::rtc::UserInfo
Definition: AgoraBase.h:5785
agora::rtc::RemoteVideoStats::publishDuration
int publishDuration
Definition: IAgoraRtcEngine.h:544
agora::rtc::IRtcEngine::stopDirectCdnStreaming
virtual int stopDirectCdnStreaming()=0
agora::rtc::LastmileProbeResult
Definition: AgoraBase.h:4046
agora::rtc::IRtcEngine::setEncryptionSecret
virtual int setEncryptionSecret(const char *secret) __deprecated=0
agora::rtc::AudioEncodedFrameObserverConfig
Definition: AgoraBase.h:5187
agora::rtc::ScreenCaptureParameters
Definition: AgoraBase.h:4970
agora::rtc::IRtcEngine::muteAllRemoteVideoStreams
virtual int muteAllRemoteVideoStreams(bool mute)=0
agora::rtc::IRtcEngine::setRemoteVideoSubscriptionOptions
virtual int setRemoteVideoSubscriptionOptions(uid_t uid, const VideoSubscriptionOptions &options)=0
agora::rtc::AudioVolumeInfo
Definition: AgoraBase.h:3197
agora::rtc::RemoteVideoStats::e2eDelay
int e2eDelay
Definition: IAgoraRtcEngine.h:492
agora::rtc::InjectStreamConfig::audioChannels
int audioChannels
Definition: IAgoraRtcEngine.h:669
agora::rtc::LocalVideoStats::regulatedCaptureFrameWidth
int regulatedCaptureFrameWidth
Definition: IAgoraRtcEngine.h:291
agora::rtc::IRtcEngine::pauseEffect
virtual int pauseEffect(int soundId)=0
agora::rtc::BeautyOptions
Definition: AgoraBase.h:4406
agora::rtc::ChannelMediaOptions::publishSecondaryCameraTrack
Optional< bool > publishSecondaryCameraTrack
Definition: IAgoraRtcEngine.h:1053
agora::rtc::SenderOptions
Definition: AgoraBase.h:1228
agora::rtc::IRtcEngine::muteLocalVideoStream
virtual int muteLocalVideoStream(bool mute)=0
agora::rtc::RtcEngineContext::eventHandler
IRtcEngineEventHandler * eventHandler
Definition: IAgoraRtcEngine.h:3101
agora::rtc::IRtcEngine::stopPreview
virtual int stopPreview(VIDEO_SOURCE_TYPE sourceType)=0
agora::rtc::IRtcEngine::startScreenCapture
virtual int startScreenCapture(VIDEO_SOURCE_TYPE sourceType, const ScreenCaptureConfiguration &config)=0
agora::rtc::IRtcEngineEventHandler::onIntraRequestReceived
virtual void onIntraRequestReceived()
Definition: IAgoraRtcEngine.h:1712
agora::rtc::VideoCompositingLayout
Definition: IAgoraRtcEngine.h:559
agora::rtc::VideoCompositingLayout::canvasHeight
int canvasHeight
Definition: IAgoraRtcEngine.h:608
agora::rtc::IRtcEngine::setVoiceConversionPreset
virtual int setVoiceConversionPreset(VOICE_CONVERSION_PRESET preset)=0
agora::rtc::DirectCdnStreamingStats::videoHeight
int videoHeight
Definition: IAgoraRtcEngine.h:3324
agora::rtc::LastmileProbeConfig
Definition: AgoraBase.h:3978
agora::rtc::IRtcEngine::enableLocalVideo
virtual int enableLocalVideo(bool enabled)=0
agora::rtc::IRtcEngineEventHandler::onLeaveChannel
virtual void onLeaveChannel(const RtcStats &stats)
Definition: IAgoraRtcEngine.h:1608
agora::rtc::IRtcEngine::joinChannel
virtual int joinChannel(const char *token, const char *channelId, uid_t uid, const ChannelMediaOptions &options)=0
agora::rtc::IRtcEngineEventHandler::onRhythmPlayerStateChanged
virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason)
Definition: IAgoraRtcEngine.h:2167
agora::rtc::IDirectCdnStreamingEventHandler::onDirectCdnStreamingStateChanged
virtual void onDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_REASON reason, const char *message)
Definition: IAgoraRtcEngine.h:3356
agora::rtc::IRtcEngine::getAudioTrackCount
virtual int getAudioTrackCount()=0
agora::rtc::IRtcEngineEventHandler::onStreamMessage
virtual void onStreamMessage(uid_t uid, int streamId, const char *data, size_t length, uint64_t sentTs)
Definition: IAgoraRtcEngine.h:2211
agora::rtc::IRtcEngineEventHandler::onFirstRemoteVideoDecoded
virtual void onFirstRemoteVideoDecoded(uid_t uid, int width, int height, int elapsed) __deprecated
Definition: IAgoraRtcEngine.h:1801
agora::rtc::LocalVideoStats::uid
uid_t uid
Definition: IAgoraRtcEngine.h:266
agora::rtc::IRtcEngine::stopChannelMediaRelay
virtual int stopChannelMediaRelay()=0
agora::rtc::IRtcEngineEventHandler::onAudioEffectFinished
virtual void onAudioEffectFinished(int soundId)
Definition: IAgoraRtcEngine.h:1661
agora::rtc::RtcEngineContext::threadPriority
Optional< THREAD_PRIORITY_TYPE > threadPriority
Definition: IAgoraRtcEngine.h:3163
agora::rtc::IRtcEngine::registerAudioEncodedFrameObserver
virtual int registerAudioEncodedFrameObserver(const AudioEncodedFrameObserverConfig &config, IAudioEncodedFrameObserver *observer)=0
agora::rtc::ChannelMediaOptions::enableBuiltInMediaEncryption
Optional< bool > enableBuiltInMediaEncryption
Definition: IAgoraRtcEngine.h:1232
agora::rtc::IRtcEngine::resumeAllEffects
virtual int resumeAllEffects()=0
agora::rtc::IRtcEngine::joinChannelWithUserAccountEx
virtual int joinChannelWithUserAccountEx(const char *token, const char *channelId, const char *userAccount, const ChannelMediaOptions &options, IRtcEngineEventHandler *eventHandler)=0
agora::rtc::InjectStreamConfig::width
int width
Definition: IAgoraRtcEngine.h:642
agora::rtc::IRtcEngine::pauseAudioMixing
virtual int pauseAudioMixing()=0
agora::rtc::IRtcEngine::setPlaybackAudioFrameBeforeMixingParameters
virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel)=0
agora::rtc::IRtcEngineEventHandler::onRemoteAudioTransportStats
virtual void onRemoteAudioTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated
Definition: IAgoraRtcEngine.h:2593
agora::rtc::RemoteAudioStats::totalActiveTime
int totalActiveTime
Definition: IAgoraRtcEngine.h:429
agora::agora_refptr
Definition: AgoraRefPtr.h:44
agora::rtc::IRtcEngineEventHandler::onFirstRemoteAudioFrame
virtual void onFirstRemoteAudioFrame(uid_t uid, int elapsed) __deprecated
Definition: IAgoraRtcEngine.h:2316
agora::rtc::IVideoDeviceCollection::release
virtual void release()=0
agora::rtc::IVideoDeviceManager::enumerateVideoDevices
virtual IVideoDeviceCollection * enumerateVideoDevices()=0
agora::rtc::LeaveChannelOptions::stopAudioMixing
bool stopAudioMixing
Definition: IAgoraRtcEngine.h:1447
agora::rtc::IRtcEngine::getVersion
virtual const char * getVersion(int *build)=0
agora::rtc::RemoteVideoStats::totalActiveTime
int totalActiveTime
Definition: IAgoraRtcEngine.h:540
agora::rtc::IRtcEngine::setAudioMixingPitch
virtual int setAudioMixingPitch(int pitch)=0
agora::rtc::ChannelMediaOptions::publishRhythmPlayerTrack
Optional< bool > publishRhythmPlayerTrack
Definition: IAgoraRtcEngine.h:1238
agora::rtc::ChannelMediaOptions::publishCustomVideoTrack
Optional< bool > publishCustomVideoTrack
Definition: IAgoraRtcEngine.h:1128
agora::rtc::IRtcEngineEventHandler::onLocalVideoStateChanged
virtual void onLocalVideoStateChanged(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_STREAM_STATE state, LOCAL_VIDEO_STREAM_REASON reason)
Definition: IAgoraRtcEngine.h:1849
agora::media::IAudioSpectrumObserver
Definition: AgoraMediaBase.h:1245
agora::rtc::DirectCdnStreamingStats::videoWidth
int videoWidth
Definition: IAgoraRtcEngine.h:3319
agora::rtc::IMetadataObserver::Metadata::buffer
unsigned char * buffer
Definition: IAgoraRtcEngine.h:3237
agora::rtc::PublisherConfiguration::publishUrl
const char * publishUrl
Definition: IAgoraRtcEngine.h:740
agora::rtc::ExtensionInfo
Definition: IAgoraRtcEngine.h:3468
agora::rtc::IRtcEngineEventHandler::onVideoRenderingTracingResult
virtual void onVideoRenderingTracingResult(uid_t uid, MEDIA_TRACE_EVENT currentEvent, VideoRenderingTracingInfo tracingInfo)
Definition: IAgoraRtcEngine.h:2742
agora::rtc::ExtensionInfo::remoteUid
uid_t remoteUid
Definition: IAgoraRtcEngine.h:3479
agora::rtc::PublisherConfiguration::lifecycle
int lifecycle
Definition: IAgoraRtcEngine.h:722
agora::rtc::IRtcEngine::startPreview
virtual int startPreview()=0
agora::rtc::IMetadataObserver::Metadata::timeStampMs
long long timeStampMs
Definition: IAgoraRtcEngine.h:3241
agora::rtc::IRtcEngineEventHandler::onLocalAudioStats
virtual void onLocalAudioStats(const LocalAudioStats &stats)
Definition: IAgoraRtcEngine.h:2026
agora::rtc::IRtcEngine::setAINSMode
virtual int setAINSMode(bool enabled, AUDIO_AINS_MODE mode)=0
agora::rtc::ChannelMediaOptions::autoSubscribeAudio
Optional< bool > autoSubscribeAudio
Definition: IAgoraRtcEngine.h:1170
agora::rtc::IRtcEngineEventHandler::onCameraExposureAreaChanged
virtual void onCameraExposureAreaChanged(int x, int y, int width, int height)
Definition: IAgoraRtcEngine.h:2091
agora::rtc::LocalAccessPointConfiguration
Definition: AgoraBase.h:6078
agora::rtc::IRtcEngineEventHandler::onClientRoleChangeFailed
virtual void onClientRoleChangeFailed(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole)
Definition: IAgoraRtcEngine.h:2431
agora::rtc::IVideoDeviceCollection::getDevice
virtual int getDevice(int index, char deviceNameUTF8[MAX_DEVICE_ID_LENGTH], char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
agora::rtc::DirectCdnStreamingStats::videoBitrate
int videoBitrate
Definition: IAgoraRtcEngine.h:3334
agora::rtc::IRtcEngineEventHandler::onLastmileQuality
virtual void onLastmileQuality(int quality)
Definition: IAgoraRtcEngine.h:1751
agora::rtc::IRtcEngine::enableInstantMediaRendering
virtual int enableInstantMediaRendering()=0
Enable instant media rendering.
agora::rtc::IRtcEngine::setRemoteRenderMode
virtual int setRemoteRenderMode(uid_t uid, media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode)=0
agora::rtc::ChannelMediaOptions::isAudioFilterable
Optional< bool > isAudioFilterable
Definition: IAgoraRtcEngine.h:1257
agora::rtc::LiveTranscoding
Definition: AgoraBase.h:3721
agora::rtc::ChannelMediaOptions::audienceLatencyLevel
Optional< AUDIENCE_LATENCY_LEVEL_TYPE > audienceLatencyLevel
Definition: IAgoraRtcEngine.h:1195
agora::rtc::IRtcEngineEventHandler::onRemoteVideoTransportStats
virtual void onRemoteVideoTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated
Definition: IAgoraRtcEngine.h:2617
agora::rtc::LocalVideoStats::sentFrameRate
int sentFrameRate
Definition: IAgoraRtcEngine.h:274
agora::rtc::Rectangle
Definition: AgoraBase.h:2046
agora::rtc::IRtcEngine::setDirectCdnStreamingVideoConfiguration
virtual int setDirectCdnStreamingVideoConfiguration(const VideoEncoderConfiguration &config)=0
agora::rtc::IRtcEngine::createDataStream
virtual int createDataStream(int *streamId, bool reliable, bool ordered)=0
agora::rtc::IVideoDeviceManager::release
virtual void release()=0
agora::rtc::IRtcEngine::setVolumeOfEffect
virtual int setVolumeOfEffect(int soundId, int volume)=0
agora::rtc::IRtcEngineEventHandler::onUserInfoUpdated
virtual void onUserInfoUpdated(uid_t uid, const UserInfo &info)
Definition: IAgoraRtcEngine.h:2719
agora::rtc::IRtcEngineEventHandler::onNetworkTypeChanged
virtual void onNetworkTypeChanged(NETWORK_TYPE type)
Definition: IAgoraRtcEngine.h:2669
agora::rtc::IRtcEngineEventHandler::onFirstRemoteAudioDecoded
virtual void onFirstRemoteAudioDecoded(uid_t uid, int elapsed) __deprecated
Definition: IAgoraRtcEngine.h:2304
agora::rtc::InjectStreamConfig::videoFramerate
int videoFramerate
Definition: IAgoraRtcEngine.h:654
agora::rtc::IRtcEngine::setDualStreamMode
virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode, const SimulcastStreamConfig &streamConfig)=0
agora::rtc::IRtcEngine::stopAudioFrameDump
virtual int stopAudioFrameDump(const char *channel_id, uid_t uid, const char *location)=0
agora::rtc::IRtcEngine::enableAudioVolumeIndication
virtual int enableAudioVolumeIndication(int interval, int smooth, bool reportVad)=0
agora::rtc::ChannelMediaOptions::mediaPlayerAudioDelayMs
Optional< int > mediaPlayerAudioDelayMs
Definition: IAgoraRtcEngine.h:1215
agora::rtc::IMetadataObserver::onReadyToSendMetadata
virtual bool onReadyToSendMetadata(Metadata &metadata, VIDEO_SOURCE_TYPE source_type)=0
agora::rtc::IRtcEngine::registerPacketObserver
virtual int registerPacketObserver(IPacketObserver *observer)=0
agora::rtc::RemoteAudioStats::networkTransportDelay
int networkTransportDelay
Definition: IAgoraRtcEngine.h:362
agora::rtc::IRtcEngine::unregisterMediaMetadataObserver
virtual int unregisterMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
agora::rtc::IRtcEngineEventHandler::onLocalVideoTranscoderError
virtual void onLocalVideoTranscoderError(const TranscodingVideoStream &stream, VIDEO_TRANSCODER_ERROR error)
Definition: IAgoraRtcEngine.h:2754
agora::rtc::IRtcEngine::getUserInfoByUid
virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo *userInfo)=0
agora::rtc::IRtcEngine::pauseAllEffects
virtual int pauseAllEffects()=0
agora::rtc::IRtcEngine::disableAudioSpectrumMonitor
virtual int disableAudioSpectrumMonitor()=0
agora::rtc::IRtcEngineEventHandler::onFirstLocalAudioFramePublished
virtual void onFirstLocalAudioFramePublished(int elapsed)
Definition: IAgoraRtcEngine.h:2284
agora::util::AutoPtr
Definition: AgoraBase.h:94
agora::rtc::LocalVideoStats::sentBitrate
int sentBitrate
Definition: IAgoraRtcEngine.h:270
agora::rtc::IRtcEngineEventHandler::onExtensionStopped
virtual void onExtensionStopped(const char *provider, const char *extension)
Definition: IAgoraRtcEngine.h:2906
agora::rtc::IRtcEngine::getAudioMixingPublishVolume
virtual int getAudioMixingPublishVolume()=0
agora::rtc::IRtcEngine::addVideoWatermark
virtual int addVideoWatermark(const char *watermarkUrl, const WatermarkOptions &options)=0
agora::rtc::IRtcEngineEventHandler::onRejoinChannelSuccess
virtual void onRejoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Definition: IAgoraRtcEngine.h:1505
agora::rtc::RemoteVideoStats::totalFrozenTime
int totalFrozenTime
Definition: IAgoraRtcEngine.h:526
agora::rtc::IMetadataObserver::METADATA_TYPE
METADATA_TYPE
Definition: IAgoraRtcEngine.h:3205
agora::rtc::IRtcEngine::setCloudProxy
virtual int setCloudProxy(CLOUD_PROXY_TYPE proxyType)=0
agora::rtc::RemoteAudioStats::receivedBitrate
int receivedBitrate
Definition: IAgoraRtcEngine.h:385
agora::rtc::VideoEncoderConfiguration
Definition: AgoraBase.h:1813
agora::rtc::IRtcEngineEventHandler
Definition: IAgoraRtcEngine.h:1474
agora::rtc::VideoCompositingLayout::Region::height
double height
Definition: IAgoraRtcEngine.h:575
agora::rtc::IRtcEngine::leaveChannel
virtual int leaveChannel(const LeaveChannelOptions &options)=0
agora::rtc::IVideoDeviceManager::getDevice
virtual int getDevice(char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
agora::rtc::IRtcEngine::startAudioMixing
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle, int startPos)=0
agora::rtc::IRtcEngineEventHandler::onUserMuteAudio
virtual void onUserMuteAudio(uid_t uid, bool muted)
Definition: IAgoraRtcEngine.h:1942
agora::rtc::ChannelMediaOptions::publishCustomAudioTrackId
Optional< int > publishCustomAudioTrackId
Definition: IAgoraRtcEngine.h:1122
agora::rtc::VideoSubscriptionOptions
Definition: AgoraBase.h:1555
agora::rtc::IRtcEngine::registerLocalUserAccount
virtual int registerLocalUserAccount(const char *appId, const char *userAccount)=0
agora::rtc::IRtcEngineEventHandler::onUplinkNetworkInfoUpdated
virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo &info)
Definition: IAgoraRtcEngine.h:1724
agora::rtc::DirectCdnStreamingMediaOptions::publishMicrophoneTrack
Optional< bool > publishMicrophoneTrack
Definition: IAgoraRtcEngine.h:3382
agora::rtc::EchoTestConfiguration
Definition: AgoraBase.h:5767
agora::rtc::RtcImage
Definition: AgoraBase.h:3542
agora::rtc::VideoCompositingLayout::backgroundColor
const char * backgroundColor
Definition: IAgoraRtcEngine.h:611
agora::rtc::IRtcEngine::getAudioMixingCurrentPosition
virtual int getAudioMixingCurrentPosition()=0
agora::rtc::IRtcEngine::startDirectCdnStreaming
virtual int startDirectCdnStreaming(IDirectCdnStreamingEventHandler *eventHandler, const char *publishUrl, const DirectCdnStreamingMediaOptions &options)=0
agora::rtc::IRtcEngine::registerAudioSpectrumObserver
virtual int registerAudioSpectrumObserver(agora::media::IAudioSpectrumObserver *observer)=0
agora::rtc::LocalVideoStats::encodedBitrate
int encodedBitrate
Definition: IAgoraRtcEngine.h:321
agora::rtc::IRtcEngine::startEchoTest
virtual int startEchoTest(int intervalInSeconds)=0
agora::rtc::LocalVideoStats::qualityAdaptIndication
QUALITY_ADAPT_INDICATION qualityAdaptIndication
Definition: IAgoraRtcEngine.h:317
agora::rtc::IRtcEngine::enableDualStreamMode
virtual int enableDualStreamMode(bool enabled, const SimulcastStreamConfig &streamConfig) __deprecated=0
agora::rtc::ChannelMediaOptions::customVideoTrackId
Optional< video_track_id_t > customVideoTrackId
Definition: IAgoraRtcEngine.h:1251
agora::rtc::SimulcastStreamConfig
Definition: AgoraBase.h:2023
agora::rtc::IRtcEngineEventHandler::onConnectionInterrupted
virtual void onConnectionInterrupted() __deprecated
Definition: IAgoraRtcEngine.h:2193
agora::rtc::IRtcEngine::setMixedAudioFrameParameters
virtual int setMixedAudioFrameParameters(int sampleRate, int channel, int samplesPerCall)=0
agora::rtc::IRtcEngine::getVolumeOfEffect
virtual int getVolumeOfEffect(int soundId)=0
agora::rtc::IMetadataObserver::getMaxMetadataSize
virtual int getMaxMetadataSize()
Definition: IAgoraRtcEngine.h:3256
agora::rtc::IRtcEngine::setSubscribeAudioAllowlist
virtual int setSubscribeAudioAllowlist(uid_t *uidList, int uidNumber)=0
agora::rtc::IRtcEngine::getConnectionState
virtual CONNECTION_STATE_TYPE getConnectionState()=0
agora::rtc::ExtensionInfo::channelId
const char * channelId
Definition: IAgoraRtcEngine.h:3492
agora::rtc::IRtcEngine::isFeatureAvailableOnDevice
virtual bool isFeatureAvailableOnDevice(FeatureType type)=0
Whether the target feature is available for the device.
agora::rtc::IRtcEngine::setExtensionProperty
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
agora::rtc::IRtcEngine::enableEncryption
virtual int enableEncryption(bool enabled, const EncryptionConfig &config)=0
agora::rtc::IRtcEngine::enableContentInspect
virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config)=0
agora::rtc::IRtcEngineEventHandler::onRemoteAudioStateChanged
virtual void onRemoteAudioStateChanged(uid_t uid, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason, int elapsed)
Definition: IAgoraRtcEngine.h:2356
agora::rtc::IRtcEngine::startRhythmPlayer
virtual int startRhythmPlayer(const char *sound1, const char *sound2, const AgoraRhythmPlayerConfig &config)=0
agora::rtc::IRtcEngine::configRhythmPlayer
virtual int configRhythmPlayer(const AgoraRhythmPlayerConfig &config)=0
agora::rtc::IRtcEngine::adjustAudioMixingPublishVolume
virtual int adjustAudioMixingPublishVolume(int volume)=0
agora::rtc::DirectCdnStreamingMediaOptions::publishCameraTrack
Optional< bool > publishCameraTrack
Definition: IAgoraRtcEngine.h:3376
agora::rtc::IVideoDeviceCollection::getCount
virtual int getCount()=0
agora::rtc::IRtcEngine::getAudioMixingDuration
virtual int getAudioMixingDuration()=0
agora::rtc::IRtcEngine::destroyMediaRecorder
virtual int destroyMediaRecorder(agora_refptr< IMediaRecorder > mediaRecorder)=0
agora::rtc::RemoteAudioStats::frozenRateByCustomPlcCount
uint32_t frozenRateByCustomPlcCount
Definition: IAgoraRtcEngine.h:419
agora::rtc::ScreenCaptureConfiguration::params
ScreenCaptureParameters params
Definition: IAgoraRtcEngine.h:854
agora::rtc::IRtcEngineEventHandler::onVideoDeviceStateChanged
virtual void onVideoDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Definition: IAgoraRtcEngine.h:1672
agora::rtc::IMetadataObserver
Definition: IAgoraRtcEngine.h:3196
agora::rtc::VideoCompositingLayout::appData
const char * appData
Definition: IAgoraRtcEngine.h:621
agora::rtc::RemoteAudioStats::totalFrozenTime
int totalFrozenTime
Definition: IAgoraRtcEngine.h:392
agora::rtc::IRtcEngineEventHandler::onAudioMixingPositionChanged
virtual void onAudioMixingPositionChanged(int64_t position)
Reports current AudioMixing progress.
Definition: IAgoraRtcEngine.h:1644
agora::rtc::IRtcEngine::setRemoteVoicePosition
virtual int setRemoteVoicePosition(uid_t uid, double pan, double gain)=0
agora::rtc::IRtcEngine::registerMediaMetadataObserver
virtual int registerMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
agora::rtc::ColorEnhanceOptions
Definition: AgoraBase.h:4530
agora::rtc::PublisherConfiguration::defaultLayout
int defaultLayout
Definition: IAgoraRtcEngine.h:719
agora::rtc::IRtcEngineEventHandler::onTranscodingUpdated
virtual void onTranscodingUpdated()
Definition: IAgoraRtcEngine.h:2487
agora::rtc::IRtcEngine::updateRtmpTranscoding
virtual int updateRtmpTranscoding(const LiveTranscoding &transcoding)=0
agora::rtc::RemoteAudioStats::publishDuration
int publishDuration
Definition: IAgoraRtcEngine.h:433
agora::rtc::IRtcEngineEventHandler::onWlAccMessage
virtual void onWlAccMessage(WLACC_MESSAGE_REASON reason, WLACC_SUGGEST_ACTION action, const char *wlAccMsg)
Definition: IAgoraRtcEngine.h:2644
agora::rtc::IRtcEngineEventHandler::onRequestToken
virtual void onRequestToken()
Definition: IAgoraRtcEngine.h:2248
agora::rtc::IRtcEngineEventHandler::onError
virtual void onError(int err, const char *msg)
Definition: IAgoraRtcEngine.h:1531
agora::rtc::IRtcEngine::getNtpWallTimeInMs
virtual uint64_t getNtpWallTimeInMs()=0
agora::rtc::IRtcEngine::startRtmpStreamWithoutTranscoding
virtual int startRtmpStreamWithoutTranscoding(const char *url)=0
agora::rtc::VideoCompositingLayout::regionCount
int regionCount
Definition: IAgoraRtcEngine.h:618
agora::rtc::ExtensionInfo::mediaSourceType
agora::media::MEDIA_SOURCE_TYPE mediaSourceType
Definition: IAgoraRtcEngine.h:3472
agora::rtc::IRtcEngineEventHandler::onProxyConnected
virtual void onProxyConnected(const char *channel, uid_t uid, PROXY_TYPE proxyType, const char *localProxyIp, int elapsed)
Definition: IAgoraRtcEngine.h:1518
agora::rtc::IRtcEngineEventHandler::onLocalPublishFallbackToAudioOnly
virtual void onLocalPublishFallbackToAudioOnly(bool isFallbackOrRecover)
Definition: IAgoraRtcEngine.h:2553
agora::rtc::IRtcEngine::enableExtension
virtual int enableExtension(const char *provider, const char *extension, bool enable=true, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
agora::rtc::IRtcEngineEventHandler::onUserStateChanged
virtual void onUserStateChanged(uid_t uid, REMOTE_USER_STATE state)
Definition: IAgoraRtcEngine.h:1988
agora::rtc::PublisherConfiguration::height
int height
Definition: IAgoraRtcEngine.h:705
agora::rtc::IRtcEngineEventHandler::onAudioMixingFinished
virtual void onAudioMixingFinished() __deprecated
Definition: IAgoraRtcEngine.h:1652
agora::rtc::AVideoDeviceManager
Definition: IAgoraRtcEngine.h:8556
agora::rtc::LocalVideoStats::codecType
VIDEO_CODEC_TYPE codecType
Definition: IAgoraRtcEngine.h:327
agora::rtc::ExtensionInfo::localUid
uid_t localUid
Definition: IAgoraRtcEngine.h:3497
agora::rtc::IRtcEngine::setSubscribeVideoBlocklist
virtual int setSubscribeVideoBlocklist(uid_t *uidList, int uidNumber)=0
agora::rtc::LocalTranscoderConfiguration
Definition: AgoraBase.h:3925
agora::rtc::IRtcEngine::adjustAudioMixingPlayoutVolume
virtual int adjustAudioMixingPlayoutVolume(int volume)=0
agora::rtc::InjectStreamConfig::audioBitrate
int audioBitrate
Definition: IAgoraRtcEngine.h:666
agora::rtc::IRtcEngine::setCameraDeviceOrientation
virtual int setCameraDeviceOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation)=0
agora::rtc::IRtcEngineEventHandler::onAudioVolumeIndication
virtual void onAudioVolumeIndication(const AudioVolumeInfo *speakers, unsigned int speakerNumber, int totalVolume)
Definition: IAgoraRtcEngine.h:1593
agora::rtc::IRtcEngineEventHandler::onStreamMessageError
virtual void onStreamMessageError(uid_t uid, int streamId, int code, int missed, int cached)
Definition: IAgoraRtcEngine.h:2231
agora::rtc::IPacketObserver
Definition: AgoraBase.h:3248
agora::rtc::IRtcEngine::setLocalPublishFallbackOption
virtual int setLocalPublishFallbackOption(STREAM_FALLBACK_OPTIONS option)=0
agora::rtc::LocalVideoStats::dualStreamEnabled
bool dualStreamEnabled
Definition: IAgoraRtcEngine.h:338
agora::rtc::IRtcEngine::writeLog
virtual int writeLog(commons::LOG_LEVEL level, const char *fmt,...)=0
agora::rtc::RemoteAudioStats::rxAudioBytes
unsigned int rxAudioBytes
Definition: IAgoraRtcEngine.h:445
agora::rtc::ChannelMediaOptions::publishEncodedVideoTrack
Optional< bool > publishEncodedVideoTrack
Definition: IAgoraRtcEngine.h:1134
agora::rtc::IRtcEngine::setDualStreamMode
virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode)=0
agora::rtc::DirectCdnStreamingStats
Definition: IAgoraRtcEngine.h:3315
agora::rtc::VideoFormat
Definition: AgoraBase.h:2534
agora::rtc::RemoteVideoStats::uid
uid_t uid
Definition: IAgoraRtcEngine.h:480
agora::rtc::IRtcEngineEventHandler::onUserOffline
virtual void onUserOffline(uid_t uid, USER_OFFLINE_REASON_TYPE reason)
Definition: IAgoraRtcEngine.h:1925
agora::rtc::IRtcEngine::registerExtension
virtual int registerExtension(const char *provider, const char *extension, agora::media::MEDIA_SOURCE_TYPE type=agora::media::UNKNOWN_MEDIA_SOURCE)=0
agora::rtc::IRtcEngine::stopRtmpStream
virtual int stopRtmpStream(const char *url)=0
agora::rtc::DataStreamConfig
Definition: AgoraBase.h:1979
agora::rtc::IRtcEngineEventHandler::onCameraFocusAreaChanged
virtual void onCameraFocusAreaChanged(int x, int y, int width, int height)
Definition: IAgoraRtcEngine.h:2077
agora::rtc::VideoCompositingLayout::Region::y
double y
Definition: IAgoraRtcEngine.h:569
agora::rtc::IRtcEngine::stopAudioMixing
virtual int stopAudioMixing()=0
agora::rtc::PublisherConfiguration
Definition: IAgoraRtcEngine.h:697
agora::rtc::IRtcEngine::setLogLevel
virtual int setLogLevel(commons::LOG_LEVEL level)=0
agora::rtc::RtcEngineContext::logConfig
commons::LogConfig logConfig
Definition: IAgoraRtcEngine.h:3158
agora::rtc::IRtcEngine::setRemoteDefaultVideoStreamType
virtual int setRemoteDefaultVideoStreamType(VIDEO_STREAM_TYPE streamType)=0
agora::rtc::IRtcEngine::setRemoteVideoStreamType
virtual int setRemoteVideoStreamType(uid_t uid, VIDEO_STREAM_TYPE streamType)=0
agora::rtc::IRtcEngineEventHandler::onUserEnableVideo
virtual void onUserEnableVideo(uid_t uid, bool enabled)
Definition: IAgoraRtcEngine.h:1978
agora::rtc::IRtcEngineEventHandler::onRtmpStreamingStateChanged
virtual void onRtmpStreamingStateChanged(const char *url, RTMP_STREAM_PUBLISH_STATE state, RTMP_STREAM_PUBLISH_REASON reason)
Definition: IAgoraRtcEngine.h:2460
agora::rtc::InjectStreamConfig::height
int height
Definition: IAgoraRtcEngine.h:646
agora::rtc::ChannelMediaOptions::publishFourthCameraTrack
Optional< bool > publishFourthCameraTrack
Definition: IAgoraRtcEngine.h:1065
agora::rtc::IRtcEngine::startRtmpStreamWithTranscoding
virtual int startRtmpStreamWithTranscoding(const char *url, const LiveTranscoding &transcoding)=0
agora::rtc::DirectCdnStreamingMediaOptions
Definition: IAgoraRtcEngine.h:3370
agora::rtc::IRtcEngine::setVideoEncoderConfiguration
virtual int setVideoEncoderConfiguration(const VideoEncoderConfiguration &config)=0
agora::rtc::AdvancedAudioOptions
Definition: IAgoraRtcEngine.h:1016
agora::rtc::IRtcEngine::queryCodecCapability
virtual int queryCodecCapability(CodecCapInfo *codecInfo, int &size)=0
agora::rtc::IRtcEngine::stopAllEffects
virtual int stopAllEffects()=0
agora::rtc::IRtcEngine::setLocalRenderMode
virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode) __deprecated=0
agora::rtc::IRtcEngine::pauseAllChannelMediaRelay
virtual int pauseAllChannelMediaRelay()=0
agora::rtc::LocalVideoStats::captureFrameHeight
int captureFrameHeight
Definition: IAgoraRtcEngine.h:283
agora::rtc::IRtcEngineEventHandler::onAudioQuality
virtual void onAudioQuality(uid_t uid, int quality, unsigned short delay, unsigned short lost) __deprecated
Definition: IAgoraRtcEngine.h:1551
agora::rtc::IRtcEngine::startAudioMixing
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle)=0
agora::rtc::IRtcEngine::adjustLoopbackSignalVolume
virtual int adjustLoopbackSignalVolume(int volume)=0
agora::rtc::IRtcEngine::takeSnapshot
virtual int takeSnapshot(uid_t uid, const char *filePath)=0
agora::rtc::RtcEngineContext::license
const char * license
Definition: IAgoraRtcEngine.h:3123
agora::rtc::ScreenCaptureConfiguration::regionRect
Rectangle regionRect
Definition: IAgoraRtcEngine.h:862
agora::rtc::VideoCompositingLayout::canvasWidth
int canvasWidth
Definition: IAgoraRtcEngine.h:603
agora::rtc::LeaveChannelOptions::stopMicrophoneRecording
bool stopMicrophoneRecording
Definition: IAgoraRtcEngine.h:1459
agora::rtc::PublisherConfiguration::rawStreamUrl
const char * rawStreamUrl
Definition: IAgoraRtcEngine.h:744
agora::rtc::RemoteAudioStats::mosValue
int mosValue
Definition: IAgoraRtcEngine.h:414
agora::rtc::IRtcEngineEventHandler::onRemoteVideoStats
virtual void onRemoteVideoStats(const RemoteVideoStats &stats)
Definition: IAgoraRtcEngine.h:2056
agora::rtc::IRtcEngine::setAudioEffectParameters
virtual int setAudioEffectParameters(AUDIO_EFFECT_PRESET preset, int param1, int param2)=0
agora::rtc::IRtcEngine::setColorEnhanceOptions
virtual int setColorEnhanceOptions(bool enabled, const ColorEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
agora::rtc::IRtcEngineEventHandler::onTokenPrivilegeWillExpire
virtual void onTokenPrivilegeWillExpire(const char *token)
Definition: IAgoraRtcEngine.h:2261
agora::rtc::LocalVideoStats::targetFrameRate
int targetFrameRate
Definition: IAgoraRtcEngine.h:313
agora::rtc::DirectCdnStreamingStats::audioBitrate
int audioBitrate
Definition: IAgoraRtcEngine.h:3339
agora::rtc::IRtcEngine::setRemoteSubscribeFallbackOption
virtual int setRemoteSubscribeFallbackOption(STREAM_FALLBACK_OPTIONS option)=0
agora::rtc::IRtcEngine::getExtensionProperty
virtual int getExtensionProperty(const char *provider, const char *extension, const ExtensionInfo &extensionInfo, const char *key, char *value, int buf_len)=0
agora::rtc::RtcEngineContext::channelProfile
CHANNEL_PROFILE_TYPE channelProfile
Definition: IAgoraRtcEngine.h:3118
agora::rtc::IRtcEngineEventHandler::onRemoteSubscribeFallbackToAudioOnly
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool isFallbackOrRecover)
Definition: IAgoraRtcEngine.h:2574
agora::rtc::IRtcEngine::setEarMonitoringAudioFrameParameters
virtual int setEarMonitoringAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
agora::rtc::IRtcEngineEventHandler::onContentInspectResult
virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result)
Definition: IAgoraRtcEngine.h:2384
agora::rtc::IRtcEngine::release
static AGORA_CPP_API void release(bool sync=false)
agora::rtc::IRtcEngineEventHandler::onAudioDeviceStateChanged
virtual void onAudioDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Definition: IAgoraRtcEngine.h:1632
agora::rtc::IAudioEncodedFrameObserver
Definition: AgoraBase.h:5205
agora::rtc::ChannelMediaOptions::token
Optional< const char * > token
Definition: IAgoraRtcEngine.h:1224
agora::rtc::LeaveChannelOptions
Definition: IAgoraRtcEngine.h:1441
agora::rtc::IRtcEngineEventHandler::onRemoteAudioStats
virtual void onRemoteAudioStats(const RemoteAudioStats &stats)
Definition: IAgoraRtcEngine.h:2015
agora::rtc::IRtcEngine::setEffectsVolume
virtual int setEffectsVolume(int volume)=0
agora::rtc::IRtcEngine::playAllEffects
virtual int playAllEffects(int loopCount, double pitch, double pan, int gain, bool publish=false)=0
agora::rtc::DirectCdnStreamingStats::fps
int fps
Definition: IAgoraRtcEngine.h:3329
agora::rtc::IRtcEngine::stopLastmileProbeTest
virtual int stopLastmileProbeTest()=0
agora::rtc::ChannelMediaRelayConfiguration
Definition: AgoraBase.h:5396
agora::rtc::IRtcEngine::setAdvancedAudioOptions
virtual int setAdvancedAudioOptions(AdvancedAudioOptions &options, int sourceType=0)=0
agora::rtc::IRtcEngine::createMediaPlayer
virtual agora_refptr< IMediaPlayer > createMediaPlayer()=0
agora::rtc::IRtcEngine::queryInterface
virtual int queryInterface(INTERFACE_ID_TYPE iid, void **inter)=0
agora::rtc::IVideoDeviceCollection
Definition: IAgoraRtcEngine.h:2943
agora::rtc::IRtcEngine::renewToken
virtual int renewToken(const char *token)=0
agora::rtc::IRtcEngine::pauseAudio
virtual int pauseAudio() __deprecated=0
agora::rtc::IRtcEngine::setAudioProfile
virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile)=0
agora::rtc::IRtcEngine::sendStreamMessage
virtual int sendStreamMessage(int streamId, const char *data, size_t length)=0
agora::rtc::LocalVideoStats::txPacketLossRate
unsigned short txPacketLossRate
Definition: IAgoraRtcEngine.h:331
agora::rtc::IRtcEngineEventHandler::onLocalVideoStats
virtual void onLocalVideoStats(VIDEO_SOURCE_TYPE source, const LocalVideoStats &stats)
Definition: IAgoraRtcEngine.h:2043
agora::rtc::ChannelMediaOptions::publishCustomAudioTrack
Optional< bool > publishCustomAudioTrack
Definition: IAgoraRtcEngine.h:1118
agora::rtc::RemoteVideoStats::avSyncTimeMs
int avSyncTimeMs
Definition: IAgoraRtcEngine.h:535
agora::rtc::RtcEngineContext::domainLimit
bool domainLimit
Definition: IAgoraRtcEngine.h:3179
agora::rtc::VideoDenoiserOptions
Definition: AgoraBase.h:4483
agora::rtc::IRtcEngine::setLocalVideoMirrorMode
virtual int setLocalVideoMirrorMode(VIDEO_MIRROR_MODE_TYPE mirrorMode) __deprecated=0
agora::rtc::RemoteVideoStats::decoderOutputFrameRate
int decoderOutputFrameRate
Definition: IAgoraRtcEngine.h:507
agora::rtc::RtcEngineContext::context
void * context
Definition: IAgoraRtcEngine.h:3114
agora::rtc::IRtcEngineEventHandler::onActiveSpeaker
virtual void onActiveSpeaker(uid_t uid)
Definition: IAgoraRtcEngine.h:2376
agora::rtc::ChannelMediaOptions::publishCameraTrack
Optional< bool > publishCameraTrack
Definition: IAgoraRtcEngine.h:1047
agora::rtc::RemoteAudioStats::e2eDelay
int e2eDelay
Definition: IAgoraRtcEngine.h:449
agora::rtc::IRtcEngineEventHandler::onFirstLocalVideoFrame
virtual void onFirstLocalVideoFrame(VIDEO_SOURCE_TYPE source, int width, int height, int elapsed)
Definition: IAgoraRtcEngine.h:1763
agora::rtc::ChannelMediaOptions::clientRoleType
Optional< CLIENT_ROLE_TYPE > clientRoleType
Definition: IAgoraRtcEngine.h:1191
agora::rtc::ChannelMediaOptions::publishThirdCameraTrack
Optional< bool > publishThirdCameraTrack
Definition: IAgoraRtcEngine.h:1059
agora::rtc::IRtcEngineEventHandler::onJoinChannelSuccess
virtual void onJoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Definition: IAgoraRtcEngine.h:1489
agora::rtc::DirectCdnStreamingMediaOptions::publishMediaPlayerId
Optional< int > publishMediaPlayerId
Definition: IAgoraRtcEngine.h:3405
agora::rtc::ChannelMediaOptions::channelProfile
Optional< CHANNEL_PROFILE_TYPE > channelProfile
Definition: IAgoraRtcEngine.h:1205
agora::rtc::RemoteAudioStats::audioLossRate
int audioLossRate
Definition: IAgoraRtcEngine.h:372
agora::rtc::IRtcEngine::setEncryptionMode
virtual int setEncryptionMode(const char *encryptionMode) __deprecated=0
agora::rtc::VideoCompositingLayout::Region::zOrder
int zOrder
Definition: IAgoraRtcEngine.h:579
agora::rtc::IRtcEngine::queryDeviceScore
virtual int queryDeviceScore()=0
agora::rtc::LocalVideoStats::captureFrameRate
int captureFrameRate
Definition: IAgoraRtcEngine.h:277
agora::rtc::VirtualBackgroundSource
Definition: AgoraBase.h:4549
agora::rtc::IRtcEngine::setParameters
virtual int setParameters(const char *parameters)=0
agora::rtc::IRtcEngine::muteRemoteVideoStream
virtual int muteRemoteVideoStream(uid_t uid, bool mute)=0
agora::rtc::IRtcEngine::setLowlightEnhanceOptions
virtual int setLowlightEnhanceOptions(bool enabled, const LowlightEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
agora::rtc::IVideoDeviceManager
Definition: IAgoraRtcEngine.h:2987
agora::rtc::RemoteVideoStats::frozenRate
int frozenRate
Definition: IAgoraRtcEngine.h:530
agora::rtc::IRtcEngine::enableLocalAudio
virtual int enableLocalAudio(bool enabled)=0
agora::rtc::IRtcEngine::setupLocalVideo
virtual int setupLocalVideo(const VideoCanvas &canvas)=0
agora::rtc::VideoCompositingLayout::appDataLength
int appDataLength
Definition: IAgoraRtcEngine.h:624
agora::rtc::IRtcEngine::setLocalVoiceReverb
virtual int setLocalVoiceReverb(AUDIO_REVERB_TYPE reverbKey, int value)=0
agora::rtc::IRtcEngine::stopEffect
virtual int stopEffect(int soundId)=0
agora::rtc::VideoCompositingLayout::Region::alpha
double alpha
Definition: IAgoraRtcEngine.h:584
agora::rtc::IRtcEngine::enableCustomAudioLocalPlayback
virtual int enableCustomAudioLocalPlayback(track_id_t trackId, bool enabled)=0
agora::rtc::DirectCdnStreamingMediaOptions::publishCustomVideoTrack
Optional< bool > publishCustomVideoTrack
Definition: IAgoraRtcEngine.h:3394
agora::rtc::ScreenCaptureConfiguration::isCaptureWindow
bool isCaptureWindow
Definition: IAgoraRtcEngine.h:836
agora::rtc::LocalVideoStats::encodedFrameHeight
int encodedFrameHeight
Definition: IAgoraRtcEngine.h:304
agora::rtc::IRtcEngineEventHandler::onAudioMetadataReceived
virtual void onAudioMetadataReceived(uid_t uid, const char *metadata, size_t length)
Definition: IAgoraRtcEngine.h:2862
agora::rtc::IRtcEngine::setLocalVoiceFormant
virtual int setLocalVoiceFormant(double formantRatio)=0
agora::rtc::AdvancedAudioOptions::audioProcessingChannels
Optional< int > audioProcessingChannels
Definition: IAgoraRtcEngine.h:1020
agora::rtc::IRtcEngine::getUserInfoByUserAccount
virtual int getUserInfoByUserAccount(const char *userAccount, rtc::UserInfo *userInfo)=0
agora::rtc::WlAccStats
Definition: AgoraBase.h:4242
agora::rtc::IRtcEngine::setDefaultMuteAllRemoteAudioStreams
virtual int setDefaultMuteAllRemoteAudioStreams(bool mute) __deprecated=0
agora::rtc::IRtcEngine::setLogFile
virtual int setLogFile(const char *filePath)=0
agora::rtc::IRtcEngine::enableVirtualBackground
virtual int enableVirtualBackground(bool enabled, VirtualBackgroundSource backgroundSource, SegmentationProperty segproperty, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
agora::rtc::IVideoDeviceCollection::setDevice
virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
agora::rtc::IRtcEngine::setCameraCapturerConfiguration
virtual int setCameraCapturerConfiguration(const CameraCapturerConfiguration &config)=0
agora::rtc::RemoteVideoStats::__deprecated
int delay __deprecated
Definition: IAgoraRtcEngine.h:488
agora::rtc::CameraCapturerConfiguration::deviceId
Optional< const char * > deviceId
Definition: IAgoraRtcEngine.h:813
agora::rtc::RemoteAudioStats::quality
int quality
Definition: IAgoraRtcEngine.h:358
agora::rtc::PublisherConfiguration::width
int width
Definition: IAgoraRtcEngine.h:701
agora::rtc::VideoCompositingLayout::Region::width
double width
Definition: IAgoraRtcEngine.h:573
agora::rtc::IRtcEngine::startEchoTest
virtual int startEchoTest(const EchoTestConfiguration &config)=0
agora::rtc::IRtcEngine::startOrUpdateChannelMediaRelay
virtual int startOrUpdateChannelMediaRelay(const ChannelMediaRelayConfiguration &configuration)=0
agora::rtc::IRtcEngineEventHandler::onConnectionBanned
virtual void onConnectionBanned() __deprecated
Definition: IAgoraRtcEngine.h:2198
agora::rtc::IRtcEngine::getEffectsVolume
virtual int getEffectsVolume()=0
agora::rtc::IRtcEngineEventHandler::onEncryptionError
virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType)
Definition: IAgoraRtcEngine.h:2680
agora::rtc::IRtcEngineEventHandler::onCameraReady
virtual void onCameraReady() __deprecated
Definition: IAgoraRtcEngine.h:2065
agora::rtc::IRtcEngine::getEffectDuration
virtual int getEffectDuration(const char *filePath)=0
agora::rtc::IRtcEngineEventHandler::onWlAccStats
virtual void onWlAccStats(const WlAccStats &currentStats, const WlAccStats &averageStats)
Definition: IAgoraRtcEngine.h:2655
agora::rtc::CodecCapInfo
Definition: AgoraBase.h:1791
agora::commons::LogConfig
Definition: IAgoraLog.h:82
agora::rtc::IRtcEngine::setPlaybackAudioFrameParameters
virtual int setPlaybackAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
agora::rtc::IRtcEngine::setLogFileSize
virtual int setLogFileSize(unsigned int fileSizeInKBytes)=0
agora::rtc::LeaveChannelOptions::stopAllEffect
bool stopAllEffect
Definition: IAgoraRtcEngine.h:1453
agora::rtc::ChannelMediaOptions::defaultVideoStreamType
Optional< VIDEO_STREAM_TYPE > defaultVideoStreamType
Definition: IAgoraRtcEngine.h:1200
agora::rtc::IRtcEngine::preloadChannelWithUserAccount
virtual int preloadChannelWithUserAccount(const char *token, const char *channelId, const char *userAccount)=0
agora::rtc::RemoteVideoStats::rxVideoBytes
unsigned int rxVideoBytes
Definition: IAgoraRtcEngine.h:556
createAgoraRtcEngine
AGORA_API agora::rtc::IRtcEngine *AGORA_CALL createAgoraRtcEngine()
agora::rtc::IRtcEngine::setBeautyEffectOptions
virtual int setBeautyEffectOptions(bool enabled, const BeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
agora::rtc::IRtcEngine::startAudioRecording
virtual int startAudioRecording(const AudioRecordingConfiguration &config)=0
agora::rtc::RtcEngineContext::autoRegisterAgoraExtensions
bool autoRegisterAgoraExtensions
Definition: IAgoraRtcEngine.h:3186
agora::rtc::LocalVideoStats
Definition: IAgoraRtcEngine.h:262
agora::rtc::IMetadataObserver::onMetadataReceived
virtual void onMetadataReceived(const Metadata &metadata)=0
agora::rtc::IRtcEngine::setAudioMixingPlaybackSpeed
virtual int setAudioMixingPlaybackSpeed(int speed)=0
agora::rtc::IRtcEngine::resumeAllChannelMediaRelay
virtual int resumeAllChannelMediaRelay()=0
agora::rtc::IRtcEngine::setExtensionProperty
virtual int setExtensionProperty(const char *provider, const char *extension, const ExtensionInfo &extensionInfo, const char *key, const char *value)=0
agora::rtc::ChannelMediaOptions::publishMediaPlayerId
Optional< int > publishMediaPlayerId
Definition: IAgoraRtcEngine.h:1186
agora::rtc::IDirectCdnStreamingEventHandler
Definition: IAgoraRtcEngine.h:3346
agora::rtc::IRtcEngineEventHandler::onLocalAudioStateChanged
virtual void onLocalAudioStateChanged(LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reason)
Definition: IAgoraRtcEngine.h:2335
agora::rtc::IRtcEngineEventHandler::onAudioSubscribeStateChanged
virtual void onAudioSubscribeStateChanged(const char *channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)
Definition: IAgoraRtcEngine.h:2780
agora::rtc::IRtcEngineEventHandler::onVideoStopped
virtual void onVideoStopped() __deprecated
Definition: IAgoraRtcEngine.h:2145
agora::rtc::EncryptionConfig
Definition: AgoraBase.h:5603
agora::rtc::IRtcEngine::destroyMediaPlayer
virtual int destroyMediaPlayer(agora_refptr< IMediaPlayer > media_player)=0
agora::rtc::IRtcEngine::setAudioMixingPosition
virtual int setAudioMixingPosition(int pos)=0
agora::rtc::ChannelMediaOptions::publishTranscodedVideoTrack
Optional< bool > publishTranscodedVideoTrack
Definition: IAgoraRtcEngine.h:1152
agora::rtc::ScreenCaptureConfiguration::displayId
uint32_t displayId
Definition: IAgoraRtcEngine.h:840
agora::rtc::ChannelMediaOptions::enableAudioRecordingOrPlayout
Optional< bool > enableAudioRecordingOrPlayout
Definition: IAgoraRtcEngine.h:1182
agora::rtc::IRtcEngineEventHandler::onVideoPublishStateChanged
virtual void onVideoPublishStateChanged(VIDEO_SOURCE_TYPE source, const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)
Definition: IAgoraRtcEngine.h:2829
agora::rtc::RemoteVideoStats::receivedBitrate
int receivedBitrate
Definition: IAgoraRtcEngine.h:504
agora::rtc::RemoteAudioStats
Definition: IAgoraRtcEngine.h:350
agora::rtc::TranscodingVideoStream
Definition: AgoraBase.h:3856
agora::rtc::IMetadataObserver::MAX_METADATA_SIZE_TYPE
MAX_METADATA_SIZE_TYPE
Definition: IAgoraRtcEngine.h:3217
agora::rtc::IRtcEngine::enableVideoImageSource
virtual int enableVideoImageSource(bool enable, const ImageTrackOptions &options)=0
enable or disable video image source to replace the current video source published or resume it
agora::rtc::LocalVideoStats::encoderOutputFrameRate
int encoderOutputFrameRate
Definition: IAgoraRtcEngine.h:298
agora::rtc::IRtcEngine::unregisterAudioSpectrumObserver
virtual int unregisterAudioSpectrumObserver(agora::media::IAudioSpectrumObserver *observer)=0
agora::rtc::IRtcEngine::setupRemoteVideo
virtual int setupRemoteVideo(const VideoCanvas &canvas)=0
agora::rtc::IRtcEngineEventHandler::onLastmileProbeResult
virtual void onLastmileProbeResult(const LastmileProbeResult &result)
Definition: IAgoraRtcEngine.h:1563
agora::rtc::IVideoDeviceManager::startDeviceTest
virtual int startDeviceTest(view_t hwnd)=0
agora::rtc::IRtcEngine::addVideoWatermark
virtual int addVideoWatermark(const RtcImage &watermark) __deprecated=0
agora::rtc::IRtcEngineEventHandler::onConnectionLost
virtual void onConnectionLost()
Definition: IAgoraRtcEngine.h:2180
agora::rtc::IRtcEngineEventHandler::onUserMuteVideo
virtual void onUserMuteVideo(uid_t uid, bool muted)
Definition: IAgoraRtcEngine.h:1961
agora::rtc::PublisherConfiguration::owner
bool owner
Definition: IAgoraRtcEngine.h:727
agora::rtc::IRtcEngine::setInEarMonitoringVolume
virtual int setInEarMonitoringVolume(int volume)=0
agora::rtc::IRtcEngine::setDefaultMuteAllRemoteVideoStreams
virtual int setDefaultMuteAllRemoteVideoStreams(bool mute) __deprecated=0
agora::rtc::IRtcEngine::enableSoundPositionIndication
virtual int enableSoundPositionIndication(bool enabled)=0
agora::rtc::VideoCompositingLayout::regions
const Region * regions
Definition: IAgoraRtcEngine.h:615
agora::rtc::IRtcEngine::stopCameraCapture
virtual int stopCameraCapture(VIDEO_SOURCE_TYPE sourceType)=0
agora::rtc::ChannelMediaOptions::publishMediaPlayerVideoTrack
Optional< bool > publishMediaPlayerVideoTrack
Definition: IAgoraRtcEngine.h:1146
agora::rtc::IRtcEngine::stopPreview
virtual int stopPreview()=0
agora::rtc::RemoteVideoStats::mosValue
int mosValue
Definition: IAgoraRtcEngine.h:552
agora::rtc::IRtcEngine::destroyCustomEncodedVideoTrack
virtual int destroyCustomEncodedVideoTrack(video_track_id_t video_track_id)=0
agora::rtc::DirectCdnStreamingMediaOptions::customVideoTrackId
Optional< video_track_id_t > customVideoTrackId
Definition: IAgoraRtcEngine.h:3410
agora::rtc::IRtcEngineEventHandler::onVideoSizeChanged
virtual void onVideoSizeChanged(VIDEO_SOURCE_TYPE sourceType, uid_t uid, int width, int height, int rotation)
Definition: IAgoraRtcEngine.h:1816
agora::rtc::IRtcEngine::muteRecordingSignal
virtual int muteRecordingSignal(bool mute)=0
agora::rtc::IRtcEngineEventHandler::onLocalUserRegistered
virtual void onLocalUserRegistered(uid_t uid, const char *userAccount)
Definition: IAgoraRtcEngine.h:2706
agora::rtc::LocalVideoStats::encodedFrameWidth
int encodedFrameWidth
Definition: IAgoraRtcEngine.h:301
agora::rtc::RtcStats
Definition: AgoraBase.h:2140
agora::rtc::LowlightEnhanceOptions
Definition: AgoraBase.h:4442
agora::rtc::IRtcEngine::setVoiceBeautifierParameters
virtual int setVoiceBeautifierParameters(VOICE_BEAUTIFIER_PRESET preset, int param1, int param2)=0
agora::rtc::IRtcEngine::muteRemoteAudioStream
virtual int muteRemoteAudioStream(uid_t uid, bool mute)=0
agora::rtc::IRtcEngine::setVideoDenoiserOptions
virtual int setVideoDenoiserOptions(bool enabled, const VideoDenoiserOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
agora::rtc::IRtcEngineEventHandler::onSnapshotTaken
virtual void onSnapshotTaken(uid_t uid, const char *filePath, int width, int height, int errCode)
Definition: IAgoraRtcEngine.h:2403
agora::rtc::IRtcEngine::destroyCustomVideoTrack
virtual int destroyCustomVideoTrack(video_track_id_t video_track_id)=0
agora::rtc::IRtcEngine::setVoiceConversionParameters
virtual int setVoiceConversionParameters(VOICE_CONVERSION_PRESET preset, int param1, int param2)=0
agora::rtc::ChannelMediaOptions::publishLipSyncTrack
Optional< bool > publishLipSyncTrack
Definition: IAgoraRtcEngine.h:1164
agora::rtc::IRtcEngineEventHandler::onFirstRemoteVideoFrame
virtual void onFirstRemoteVideoFrame(uid_t uid, int width, int height, int elapsed)
Definition: IAgoraRtcEngine.h:1880
agora::rtc::IRtcEngine::adjustAudioMixingVolume
virtual int adjustAudioMixingVolume(int volume)=0
agora::rtc::WatermarkOptions
Definition: AgoraBase.h:2103
agora::rtc::LocalAudioStats
Definition: AgoraBase.h:3374
agora::rtc::RecorderStreamInfo
Definition: AgoraBase.h:6113
agora::rtc::ChannelMediaOptions::publishThirdScreenTrack
Optional< bool > publishThirdScreenTrack
Definition: IAgoraRtcEngine.h:1104
agora::rtc::IRtcEngineEventHandler::onAudioDeviceVolumeChanged
virtual void onAudioDeviceVolumeChanged(MEDIA_DEVICE_TYPE deviceType, int volume, bool muted)
Definition: IAgoraRtcEngine.h:2443
agora::rtc::IRtcEngine::leaveChannel
virtual int leaveChannel()=0
agora::rtc::IRtcEngine::setAudioScenario
virtual int setAudioScenario(AUDIO_SCENARIO_TYPE scenario)=0
agora::rtc::IRtcEngine::setClientRole
virtual int setClientRole(CLIENT_ROLE_TYPE role)=0
agora::rtc::IRtcEngine::preloadChannel
virtual int preloadChannel(const char *token, const char *channelId, uid_t uid)=0
agora::rtc::IRtcEngineEventHandler::onClientRoleChanged
virtual void onClientRoleChanged(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions &newRoleOptions)
Definition: IAgoraRtcEngine.h:2418
agora::rtc::IRtcEngineEventHandler::onExtensionError
virtual void onExtensionError(const char *provider, const char *extension, int error, const char *message)
Definition: IAgoraRtcEngine.h:2922
agora::rtc::RemoteVideoStats::width
int width
Definition: IAgoraRtcEngine.h:496
agora::rtc::RtcEngineContext::audioScenario
AUDIO_SCENARIO_TYPE audioScenario
Definition: IAgoraRtcEngine.h:3132
agora::rtc::RemoteVideoStats::rendererOutputFrameRate
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:510
agora::rtc::IRtcEngine::setVoiceBeautifierPreset
virtual int setVoiceBeautifierPreset(VOICE_BEAUTIFIER_PRESET preset)=0
agora::rtc::IRtcEngine::rate
virtual int rate(const char *callId, int rating, const char *description)=0
agora::rtc::LocalVideoStats::targetBitrate
int targetBitrate
Definition: IAgoraRtcEngine.h:310
agora::rtc::ChannelMediaOptions::publishSecondaryScreenTrack
Optional< bool > publishSecondaryScreenTrack
Definition: IAgoraRtcEngine.h:1098
agora::rtc::RemoteAudioStats::qualityChangedReason
int qualityChangedReason
Definition: IAgoraRtcEngine.h:441
agora::rtc::IRtcEngine::getCallId
virtual int getCallId(agora::util::AString &callId)=0
agora::rtc::InjectStreamConfig
Definition: IAgoraRtcEngine.h:638
agora::rtc::IRtcEngine::uploadLogFile
virtual int uploadLogFile(agora::util::AString &requestId)=0
agora::rtc::IRtcEngine::startMediaRenderingTracing
virtual int startMediaRenderingTracing()=0
Start tracing media rendering events.
agora::rtc::CameraCapturerConfiguration::format
VideoFormat format
Definition: IAgoraRtcEngine.h:824
agora::rtc::LocalVideoStats::encodedFrameCount
int encodedFrameCount
Definition: IAgoraRtcEngine.h:324
agora::rtc::PublisherConfiguration::bitrate
int bitrate
Definition: IAgoraRtcEngine.h:713
agora::rtc::LocalVideoStats::regulatedCaptureFrameRate
int regulatedCaptureFrameRate
Definition: IAgoraRtcEngine.h:287
agora::rtc::IRtcEngine::enableWirelessAccelerate
virtual int enableWirelessAccelerate(bool enabled)=0
agora::rtc::IRtcEngine::createCustomEncodedVideoTrack
virtual video_track_id_t createCustomEncodedVideoTrack(const SenderOptions &sender_option)=0
agora::rtc::RtcEngineContext
Definition: IAgoraRtcEngine.h:3097
agora::rtc::IRtcEngine::unloadAllEffects
virtual int unloadAllEffects()=0
agora::rtc::ChannelMediaOptions
Definition: IAgoraRtcEngine.h:1041
agora::rtc::IRtcEngine
Definition: IAgoraRtcEngine.h:3511
agora::rtc::IRtcEngine::setClientRole
virtual int setClientRole(CLIENT_ROLE_TYPE role, const ClientRoleOptions &options)=0
agora::rtc::IRtcEngine::enableLoopbackRecording
virtual int enableLoopbackRecording(bool enabled, const char *deviceName=NULL)=0
agora::rtc::IRtcEngine::sendAudioMetadata
virtual int sendAudioMetadata(const char *metadata, size_t length)=0
send audio metadata
agora::rtc::IRtcEngine::createMediaRecorder
virtual agora_refptr< IMediaRecorder > createMediaRecorder(const RecorderStreamInfo &info)=0
agora::rtc::ScreenCaptureConfiguration
Definition: IAgoraRtcEngine.h:830
agora::rtc::IRtcEngine::setAudioMixingDualMonoMode
virtual int setAudioMixingDualMonoMode(media::AUDIO_MIXING_DUAL_MONO_MODE mode)=0
agora::rtc::ChannelMediaOptions::autoSubscribeVideo
Optional< bool > autoSubscribeVideo
Definition: IAgoraRtcEngine.h:1176
agora::rtc::AudioRecordingConfiguration
Definition: AgoraBase.h:5112
agora::rtc::IRtcEngine::getEffectCurrentPosition
virtual int getEffectCurrentPosition(int soundId)=0
agora::rtc::ChannelMediaOptions::publishMicrophoneTrack
Optional< bool > publishMicrophoneTrack
Definition: IAgoraRtcEngine.h:1071
agora::rtc::IRtcEngine::updatePreloadChannelToken
virtual int updatePreloadChannelToken(const char *token)=0
agora::rtc::IRtcEngine::resumeAudio
virtual int resumeAudio() __deprecated=0
agora::rtc::IRtcEngine::muteLocalAudioStream
virtual int muteLocalAudioStream(bool mute)=0
agora::rtc::IRtcEngine::joinChannelWithUserAccount
virtual int joinChannelWithUserAccount(const char *token, const char *channelId, const char *userAccount)=0
agora::rtc::IRtcEngine::setChannelProfile
virtual int setChannelProfile(CHANNEL_PROFILE_TYPE profile)=0
agora::rtc::RemoteVideoStats::frameLossRate
int frameLossRate
Definition: IAgoraRtcEngine.h:513
agora::rtc::IRtcEngine::updateDirectCdnStreamingMediaOptions
virtual int updateDirectCdnStreamingMediaOptions(const DirectCdnStreamingMediaOptions &options)=0
agora::rtc::IRtcEngine::setLocalVoicePitch
virtual int setLocalVoicePitch(double pitch)=0
agora::rtc::IRtcEngineEventHandler::onTranscodedStreamLayoutInfo
virtual void onTranscodedStreamLayoutInfo(uid_t uid, int width, int height, int layoutCount, const VideoLayout *layoutlist)
Definition: IAgoraRtcEngine.h:2846
agora::rtc::RemoteVideoStats::height
int height
Definition: IAgoraRtcEngine.h:500
agora::rtc::LocalVideoStats::captureFrameWidth
int captureFrameWidth
Definition: IAgoraRtcEngine.h:280
agora::rtc::IRtcEngine::setAudioEffectPreset
virtual int setAudioEffectPreset(AUDIO_EFFECT_PRESET preset)=0
agora::rtc::IRtcEngineEventHandler::onExtensionEvent
virtual void onExtensionEvent(const char *provider, const char *extension, const char *key, const char *value)
Definition: IAgoraRtcEngine.h:2878
agora::rtc::RtcEngineContext::useExternalEglContext
bool useExternalEglContext
Definition: IAgoraRtcEngine.h:3172
agora::rtc::IRtcEngine::preloadEffect
virtual int preloadEffect(int soundId, const char *filePath, int startPos=0)=0
agora::rtc::RemoteAudioStats::frozenRate
int frozenRate
Definition: IAgoraRtcEngine.h:397
agora::rtc::IRtcEngine::setVideoScenario
virtual int setVideoScenario(VIDEO_APPLICATION_SCENARIO_TYPE scenarioType)=0
agora::rtc::RemoteAudioStats::plcCount
uint32_t plcCount
Definition: IAgoraRtcEngine.h:423
agora::rtc::IRtcEngine::stopEchoTest
virtual int stopEchoTest()=0
agora::rtc::IRtcEngine::startAudioRecording
virtual int startAudioRecording(const char *filePath, AUDIO_RECORDING_QUALITY_TYPE quality)=0
agora::rtc::IRtcEngine::setLocalVoiceEqualization
virtual int setLocalVoiceEqualization(AUDIO_EQUALIZATION_BAND_FREQUENCY bandFrequency, int bandGain)=0
agora::rtc::DirectCdnStreamingMediaOptions::publishMediaPlayerAudioTrack
Optional< bool > publishMediaPlayerAudioTrack
Definition: IAgoraRtcEngine.h:3400
agora::util::CopyableAutoPtr
Definition: AgoraBase.h:150
agora::rtc::IRtcEngine::getNetworkType
virtual int getNetworkType()=0
agora::rtc::InjectStreamConfig::audioSampleRate
AUDIO_SAMPLE_RATE_TYPE audioSampleRate
Definition: IAgoraRtcEngine.h:662
agora::rtc::IRtcEngine::enableExtension
virtual int enableExtension(const char *provider, const char *extension, const ExtensionInfo &extensionInfo, bool enable=true)=0
agora::rtc::PublisherConfiguration::framerate
int framerate
Definition: IAgoraRtcEngine.h:709
agora::rtc::IRtcEngine::resumeEffect
virtual int resumeEffect(int soundId)=0
agora::rtc::PublisherConfiguration::injectStreamUrl
const char * injectStreamUrl
Definition: IAgoraRtcEngine.h:736
agora::rtc::ChannelMediaOptions::publishScreenTrack
Optional< bool > publishScreenTrack
Definition: IAgoraRtcEngine.h:1092
agora::rtc::IRtcEngineEventHandler::onAudioRoutingChanged
virtual void onAudioRoutingChanged(int routing)
Definition: IAgoraRtcEngine.h:2502
agora::rtc::IRtcEngine::playEffect
virtual int playEffect(int soundId, const char *filePath, int loopCount, double pitch, double pan, int gain, bool publish=false, int startPos=0)=0
agora::rtc::InjectStreamConfig::videoBitrate
int videoBitrate
Definition: IAgoraRtcEngine.h:658
agora::rtc::LocalVideoStats::captureBrightnessLevel
CAPTURE_BRIGHTNESS_LEVEL_TYPE captureBrightnessLevel
Definition: IAgoraRtcEngine.h:334
agora::rtc::IRtcEngine::enableVideo
virtual int enableVideo()=0
agora::rtc::IRtcEngine::setRemoteUserSpatialAudioParams
virtual int setRemoteUserSpatialAudioParams(uid_t uid, const agora::SpatialAudioParams &params)=0
agora::rtc::IRtcEngine::setHeadphoneEQParameters
virtual int setHeadphoneEQParameters(int lowGain, int highGain)=0
agora::rtc::IMetadataObserver::UNKNOWN_METADATA
@ UNKNOWN_METADATA
Definition: IAgoraRtcEngine.h:3208
agora::rtc::IRtcEngineEventHandler::onFirstLocalVideoFramePublished
virtual void onFirstLocalVideoFramePublished(VIDEO_SOURCE_TYPE source, int elapsed)
Definition: IAgoraRtcEngine.h:1780
agora::rtc::IRtcEngine::startEchoTest
virtual int startEchoTest()=0
agora::rtc::IRtcEngine::stopScreenCapture
virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType)=0
agora::rtc::IRtcEngine::updateChannelMediaOptions
virtual int updateChannelMediaOptions(const ChannelMediaOptions &options)=0
agora::rtc::RemoteAudioStats::numChannels
int numChannels
Definition: IAgoraRtcEngine.h:376
agora::rtc::IRtcEngineEventHandler::onSetRtmFlagResult
virtual void onSetRtmFlagResult(int code)
Definition: IAgoraRtcEngine.h:2935
agora::rtc::ChannelMediaOptions::audioDelayMs
Optional< int > audioDelayMs
Definition: IAgoraRtcEngine.h:1210
agora::rtc::IRtcEngine::createDataStream
virtual int createDataStream(int *streamId, const DataStreamConfig &config)=0
agora::rtc::IRtcEngine::initialize
virtual int initialize(const RtcEngineContext &context)=0
agora::rtc::IRtcEngineEventHandler::onNetworkQuality
virtual void onNetworkQuality(uid_t uid, int txQuality, int rxQuality)
Definition: IAgoraRtcEngine.h:1700
agora::rtc::IRtcEngine::resumeAudioMixing
virtual int resumeAudioMixing()=0
agora::rtc::ImageTrackOptions
Definition: IAgoraRtcEngine.h:1026
agora::rtc::IRtcEngine::unloadEffect
virtual int unloadEffect(int soundId)=0
agora::rtc::VideoCompositingLayout::Region
Definition: IAgoraRtcEngine.h:560
agora::rtc::IRtcEngine::stopRhythmPlayer
virtual int stopRhythmPlayer()=0
agora::rtc::IRtcEngine::getAudioMixingPlayoutVolume
virtual int getAudioMixingPlayoutVolume()=0
agora::rtc::IRtcEngine::startLastmileProbeTest
virtual int startLastmileProbeTest(const LastmileProbeConfig &config)=0
agora::rtc::IRtcEngineEventHandler::onVideoSubscribeStateChanged
virtual void onVideoSubscribeStateChanged(const char *channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)
Definition: IAgoraRtcEngine.h:2797
agora::rtc::IRtcEngine::getExtensionProperty
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
agora::rtc::ChannelMediaOptions::publishFourthScreenTrack
Optional< bool > publishFourthScreenTrack
Definition: IAgoraRtcEngine.h:1110
agora::rtc::RemoteAudioStats::jitterBufferDelay
int jitterBufferDelay
Definition: IAgoraRtcEngine.h:368
agora::rtc::IRtcEngine::adjustPlaybackSignalVolume
virtual int adjustPlaybackSignalVolume(int volume)=0
agora::rtc::IRtcEngineEventHandler::onRemoteVideoStateChanged
virtual void onRemoteVideoStateChanged(uid_t uid, REMOTE_VIDEO_STATE state, REMOTE_VIDEO_STATE_REASON reason, int elapsed)
Definition: IAgoraRtcEngine.h:1866
agora::rtc::IRtcEngine::setExtensionProviderProperty
virtual int setExtensionProviderProperty(const char *provider, const char *key, const char *value)=0
agora::rtc::PublisherConfiguration::injectStreamWidth
int injectStreamWidth
Definition: IAgoraRtcEngine.h:730
agora::rtc::ChannelMediaOptions::publishMixedAudioTrack
Optional< bool > publishMixedAudioTrack
Definition: IAgoraRtcEngine.h:1158
agora::rtc::RemoteVideoStats::rxStreamType
VIDEO_STREAM_TYPE rxStreamType
Definition: IAgoraRtcEngine.h:520
agora::rtc::IRtcEngine::enableAudio
virtual int enableAudio()=0
agora::rtc::IVideoDeviceManager::stopDeviceTest
virtual int stopDeviceTest()=0
agora::rtc::IMetadataObserver::Metadata::uid
unsigned int uid
Definition: IAgoraRtcEngine.h:3231
agora::rtc::RemoteAudioStats::uid
uid_t uid
Definition: IAgoraRtcEngine.h:354
agora::rtc::IRtcEngine::disableVideo
virtual int disableVideo()=0
agora::rtc::IRtcEngine::enableDualStreamMode
virtual int enableDualStreamMode(bool enabled) __deprecated=0
agora::rtc::InjectStreamConfig::videoGop
int videoGop
Definition: IAgoraRtcEngine.h:650
agora::rtc::IRtcEngine::setVideoQoEPreference
virtual int setVideoQoEPreference(VIDEO_QOE_PREFERENCE_TYPE qoePreference)=0
agora::rtc::ChannelMediaOptions::isInteractiveAudience
Optional< bool > isInteractiveAudience
Definition: IAgoraRtcEngine.h:1246
agora::SpatialAudioParams
Definition: AgoraBase.h:6163
agora::rtc::IRtcEngine::setLogFilter
virtual int setLogFilter(unsigned int filter)=0
agora::rtc::IRtcEngine::getLoopbackRecordingVolume
virtual int getLoopbackRecordingVolume()=0
agora::rtc::IRtcEngineEventHandler::onPermissionError
virtual void onPermissionError(PERMISSION_TYPE permissionType)
Definition: IAgoraRtcEngine.h:2693
agora::rtc::IRtcEngineEventHandler::onUploadLogResult
virtual void onUploadLogResult(const char *requestId, bool success, UPLOAD_ERROR_REASON reason)
Definition: IAgoraRtcEngine.h:2765
agora::rtc::RemoteAudioStats::qoeQuality
int qoeQuality
Definition: IAgoraRtcEngine.h:437
agora::rtc::IRtcEngine::setHeadphoneEQPreset
virtual int setHeadphoneEQPreset(HEADPHONE_EQUALIZER_PRESET preset)=0
agora::rtc::IRtcEngine::startCameraCapture
virtual int startCameraCapture(VIDEO_SOURCE_TYPE sourceType, const CameraCapturerConfiguration &config)=0
agora::rtc::IRtcEngine::setLocalAccessPoint
virtual int setLocalAccessPoint(const LocalAccessPointConfiguration &config)=0
agora::rtc::IRtcEngine::createCustomVideoTrack
virtual video_track_id_t createCustomVideoTrack()=0
agora::rtc::IRtcEngine::disableAudio
virtual int disableAudio()=0
agora::rtc::IRtcEngine::muteAllRemoteAudioStreams
virtual int muteAllRemoteAudioStreams(bool mute)=0
agora::rtc::IRtcEngineEventHandler::onRtcStats
virtual void onRtcStats(const RtcStats &stats)
Definition: IAgoraRtcEngine.h:1617
agora::rtc::IRtcEngineEventHandler::onUserJoined
virtual void onUserJoined(uid_t uid, int elapsed)
Definition: IAgoraRtcEngine.h:1906
agora::rtc::AAudioDeviceManager
Definition: IAgoraRtcEngine.h:8549
agora::rtc::IMetadataObserver::Metadata
Definition: IAgoraRtcEngine.h:3226
agora::rtc::IRtcEngine::sendCustomReportMessage
virtual int sendCustomReportMessage(const char *id, const char *category, const char *event, const char *label, int value)=0
agora::rtc::FocalLengthInfo
Definition: AgoraBase.h:1803
agora::rtc::RemoteVideoStats::packetLossRate
int packetLossRate
Definition: IAgoraRtcEngine.h:516
agora::rtc::LocalVideoStats::hwEncoderAccelerating
int hwEncoderAccelerating
Definition: IAgoraRtcEngine.h:343
agora::rtc::DeviceInfo
Definition: AgoraBase.h:3234
agora::base::IEngineBase
Definition: AgoraBase.h:6129
agora::rtc::LocalVideoStats::rendererOutputFrameRate
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:307
agora::rtc::IRtcEngineEventHandler::onDownlinkNetworkInfoUpdated
virtual void onDownlinkNetworkInfoUpdated(const DownlinkNetworkInfo &info)
Definition: IAgoraRtcEngine.h:1735
agora::rtc::DirectCdnStreamingMediaOptions::publishCustomAudioTrack
Optional< bool > publishCustomAudioTrack
Definition: IAgoraRtcEngine.h:3388
agora::rtc::VideoRenderingTracingInfo
Definition: AgoraBase.h:5977
agora::rtc::IRtcEngineEventHandler::onAudioMixingStateChanged
virtual void onAudioMixingStateChanged(AUDIO_MIXING_STATE_TYPE state, AUDIO_MIXING_REASON_TYPE reason)
Definition: IAgoraRtcEngine.h:2154
agora::rtc::IRtcEngine::setLocalRenderMode
virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode)=0
agora::rtc::IRtcEngine::startAudioFrameDump
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
agora::rtc::IRtcEngine::setAudioProfile
virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile, AUDIO_SCENARIO_TYPE scenario) __deprecated=0
agora::rtc::RtcEngineContext::areaCode
unsigned int areaCode
Definition: IAgoraRtcEngine.h:3141
agora::rtc::IRtcEngineEventHandler::onLicenseValidationFailure
virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error)
Definition: IAgoraRtcEngine.h:2270
agora::rtc::CameraCapturerConfiguration
Definition: IAgoraRtcEngine.h:794
agora::rtc::IMetadataObserver::VIDEO_METADATA
@ VIDEO_METADATA
Definition: IAgoraRtcEngine.h:3211
agora::rtc::IRtcEngine::selectAudioTrack
virtual int selectAudioTrack(int index)=0
agora::rtc::RemoteVideoStats
Definition: IAgoraRtcEngine.h:476
agora::rtc::IRtcEngine::startAudioRecording
virtual int startAudioRecording(const char *filePath, int sampleRate, AUDIO_RECORDING_QUALITY_TYPE quality)=0
agora::rtc::PublisherConfiguration::injectStreamHeight
int injectStreamHeight
Definition: IAgoraRtcEngine.h:733
agora::Optional
Definition: AgoraOptional.h:52
agora::rtc::IRtcEngine::joinChannel
virtual int joinChannel(const char *token, const char *channelId, const char *info, uid_t uid)=0
agora::rtc::IMetadataObserver::Metadata::size
unsigned int size
Definition: IAgoraRtcEngine.h:3234
agora::rtc::ClientRoleOptions
Definition: AgoraBase.h:2385
agora::rtc::IRtcEngine::setRecordingAudioFrameParameters
virtual int setRecordingAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
agora::rtc::ScreenCaptureConfiguration::screenRect
Rectangle screenRect
Definition: IAgoraRtcEngine.h:845
agora::rtc::IRtcEngineEventHandler::onUserEnableLocalVideo
virtual void onUserEnableLocalVideo(uid_t uid, bool enabled) __deprecated
Definition: IAgoraRtcEngine.h:2003
agora::rtc::IVideoDeviceManager::setDevice
virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
agora::rtc::IRtcEngineEventHandler::onChannelMediaRelayStateChanged
virtual void onChannelMediaRelayStateChanged(int state, int code)
Definition: IAgoraRtcEngine.h:2535
agora::rtc::IRtcEngine::complain
virtual int complain(const char *callId, const char *description)=0
agora::rtc::IRtcEngine::clearVideoWatermarks
virtual int clearVideoWatermarks()=0
agora::rtc::IRtcEngine::stopAudioRecording
virtual int stopAudioRecording()=0
agora::rtc::IRtcEngineEventHandler::onAudioPublishStateChanged
virtual void onAudioPublishStateChanged(const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)
Definition: IAgoraRtcEngine.h:2813
agora::rtc::IRtcEngine::setHighPriorityUserList
virtual int setHighPriorityUserList(uid_t *uidList, int uidNum, STREAM_FALLBACK_OPTIONS option)=0
agora::rtc::IRtcEngine::setScreenCaptureOrientation
virtual int setScreenCaptureOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation)=0
agora::rtc::RemoteAudioStats::receivedSampleRate
int receivedSampleRate
Definition: IAgoraRtcEngine.h:380
agora::rtc::IRtcEngine::startPreview
virtual int startPreview(VIDEO_SOURCE_TYPE sourceType)=0
agora::rtc::VideoCanvas
Definition: AgoraBase.h:4316
agora::rtc::VideoCompositingLayout::Region::uid
uid_t uid
Definition: IAgoraRtcEngine.h:563
agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged
virtual void onConnectionStateChanged(CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason)
Definition: IAgoraRtcEngine.h:2632
agora::rtc::SegmentationProperty
Definition: AgoraBase.h:4616
agora::rtc::VideoCompositingLayout::Region::x
double x
Definition: IAgoraRtcEngine.h:566
agora::rtc::IRtcEngineEventHandler::onExtensionStarted
virtual void onExtensionStarted(const char *provider, const char *extension)
Definition: IAgoraRtcEngine.h:2893