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 {
82  AUDIO_MIXING_STATE_PLAYING = 710,
86  AUDIO_MIXING_STATE_PAUSED = 711,
93  AUDIO_MIXING_STATE_STOPPED = 713,
101  AUDIO_MIXING_STATE_FAILED = 714,
102 };
103 
108 enum AUDIO_MIXING_REASON_TYPE {
113  AUDIO_MIXING_REASON_CAN_NOT_OPEN = 701,
118  AUDIO_MIXING_REASON_TOO_FREQUENT_CALL = 702,
122  AUDIO_MIXING_REASON_INTERRUPTED_EOF = 703,
126  AUDIO_MIXING_REASON_ONE_LOOP_COMPLETED = 721,
130  AUDIO_MIXING_REASON_ALL_LOOPS_COMPLETED = 723,
134  AUDIO_MIXING_REASON_STOPPED_BY_USER = 724,
136  AUDIO_MIXING_REASON_RESUMED_BY_USER = 726,
140  AUDIO_MIXING_REASON_OK = 0,
141 };
142 
146 enum INJECT_STREAM_STATUS {
150  INJECT_STREAM_STATUS_START_SUCCESS = 0,
154  INJECT_STREAM_STATUS_START_ALREADY_EXISTS = 1,
158  INJECT_STREAM_STATUS_START_UNAUTHORIZED = 2,
162  INJECT_STREAM_STATUS_START_TIMEDOUT = 3,
166  INJECT_STREAM_STATUS_START_FAILED = 4,
170  INJECT_STREAM_STATUS_STOP_SUCCESS = 5,
174  INJECT_STREAM_STATUS_STOP_NOT_FOUND = 6,
178  INJECT_STREAM_STATUS_STOP_UNAUTHORIZED = 7,
182  INJECT_STREAM_STATUS_STOP_TIMEDOUT = 8,
186  INJECT_STREAM_STATUS_STOP_FAILED = 9,
190  INJECT_STREAM_STATUS_BROKEN = 10,
191 };
192 
196 enum AUDIO_EQUALIZATION_BAND_FREQUENCY {
200  AUDIO_EQUALIZATION_BAND_31 = 0,
204  AUDIO_EQUALIZATION_BAND_62 = 1,
208  AUDIO_EQUALIZATION_BAND_125 = 2,
212  AUDIO_EQUALIZATION_BAND_250 = 3,
216  AUDIO_EQUALIZATION_BAND_500 = 4,
220  AUDIO_EQUALIZATION_BAND_1K = 5,
224  AUDIO_EQUALIZATION_BAND_2K = 6,
228  AUDIO_EQUALIZATION_BAND_4K = 7,
232  AUDIO_EQUALIZATION_BAND_8K = 8,
236  AUDIO_EQUALIZATION_BAND_16K = 9,
237 };
238 
242 enum AUDIO_REVERB_TYPE {
246  AUDIO_REVERB_DRY_LEVEL = 0,
250  AUDIO_REVERB_WET_LEVEL = 1,
254  AUDIO_REVERB_ROOM_SIZE = 2,
258  AUDIO_REVERB_WET_DELAY = 3,
262  AUDIO_REVERB_STRENGTH = 4,
263 };
264 
268 enum STREAM_FALLBACK_OPTIONS {
273  STREAM_FALLBACK_OPTION_DISABLED = 0,
277  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LOW = 1,
283  STREAM_FALLBACK_OPTION_AUDIO_ONLY = 2,
288  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_1 = 3,
289  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_2 = 4,
290  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_3 = 5,
291  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_4 = 6,
292  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_5 = 7,
293  STREAM_FALLBACK_OPTION_VIDEO_STREAM_LAYER_6 = 8,
294 };
295 
296 enum PRIORITY_TYPE {
299  PRIORITY_HIGH = 50,
302  PRIORITY_NORMAL = 100,
303 };
304 
305 struct RtcConnection;
306 
311 {
315  uid_t uid;
385  QUALITY_ADAPT_INDICATION qualityAdaptIndication;
398  VIDEO_CODEC_TYPE codecType;
403  unsigned short txPacketLossRate;
408  CAPTURE_BRIGHTNESS_LEVEL_TYPE captureBrightnessLevel;
429 };
430 
435 {
439  uid_t uid;
443  int quality;
496  int mosValue;
505  uint32_t plcCount;
506 
512 
518 
542  unsigned int rxAudioBytes;
547  int e2eDelay;
548 
550  : uid(0),
551  quality(0),
554  audioLossRate(0),
555  numChannels(0),
557  receivedBitrate(0),
558  totalFrozenTime(0),
559  frozenRate(0),
560  mosValue(0),
562  plcCount(0),
565  totalActiveTime(0),
566  publishDuration(0),
567  qoeQuality(0),
569  rxAudioBytes(0),
570  e2eDelay(0) {}
571 };
572 
580  uid_t uid;
588  int delay __deprecated;
593  int e2eDelay;
597  int width;
601  int height;
628  VIDEO_STREAM_TYPE rxStreamType;
663  int mosValue;
667  unsigned int rxVideoBytes;
668 };
669 
671  struct Region {
674  uid_t uid;
677  double x; // [0,1]
680  double y; // [0,1]
684  double width; // [0,1]
686  double height; // [0,1]
690  int zOrder; // optional, [0, 100] //0 (default): bottom most, 100: top most
691 
695  double alpha;
696 
697  media::base::RENDER_MODE_TYPE renderMode; // RENDER_MODE_HIDDEN: Crop, RENDER_MODE_FIT: Zoom to fit
698 
699  Region()
700  : uid(0),
701  x(0),
702  y(0),
703  width(0),
704  height(0),
705  zOrder(0),
706  alpha(1.0),
707  renderMode(media::base::RENDER_MODE_HIDDEN) {}
708  };
709 
722  const char* backgroundColor; // e.g. "#C0C0C0" in RGB
726  const Region* regions;
732  const char* appData;
736 
738  : canvasWidth(0),
739  canvasHeight(0),
740  backgroundColor(OPTIONAL_NULLPTR),
741  regions(NULL),
742  regionCount(0),
743  appData(OPTIONAL_NULLPTR),
744  appDataLength(0) {}
745 };
746 
753  int width;
757  int height;
761  int videoGop;
773  AUDIO_SAMPLE_RATE_TYPE audioSampleRate;
781 
782  // width / height default set to 0 means pull the stream with its original
783  // resolution
785  : width(0),
786  height(0),
787  videoGop(30),
788  videoFramerate(15),
789  videoBitrate(400),
790  audioSampleRate(AUDIO_SAMPLE_RATE_48000),
791  audioBitrate(48),
792  audioChannels(1) {}
793 };
794 
798 enum RTMP_STREAM_LIFE_CYCLE_TYPE {
803  RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL = 1,
808  RTMP_STREAM_LIFE_CYCLE_BIND2OWNER = 2,
809 };
810 
817  int width;
821  int height;
829  int bitrate;
843  bool owner;
852  const char* injectStreamUrl;
856  const char* publishUrl;
860  const char* rawStreamUrl;
863  const char* extraInfo;
864 
866  : width(640),
867  height(360),
868  framerate(15),
869  bitrate(500),
870  defaultLayout(1),
871  lifecycle(RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL),
872  owner(true),
875  injectStreamUrl(NULL),
876  publishUrl(NULL),
877  rawStreamUrl(NULL),
878  extraInfo(NULL) {}
879 };
880 
884 enum CAMERA_DIRECTION {
888  CAMERA_REAR = 0,
892  CAMERA_FRONT = 1,
893 };
894 
900 enum CLOUD_PROXY_TYPE {
905  NONE_PROXY = 0,
910  UDP_PROXY = 1,
912 
916  TCP_PROXY = 2,
918 };
919 
925 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
926 
930  Optional<CAMERA_DIRECTION> cameraDirection;
931 
948  Optional<CAMERA_FOCAL_LENGTH_TYPE> cameraFocalLengthType;
949 #else
950 
955 #endif
956 
957 #if defined(__ANDROID__)
958 
973  Optional<const char *> cameraId;
974 #endif
975 
989 };
999  bool isCaptureWindow; // true - capture window, false - capture display
1004  int64_t displayId;
1009  Rectangle screenRect; //Windows only
1014  int64_t windowId;
1026 
1028 };
1029 
1030 #if (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)|| (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
1031 
1033 struct SIZE {
1036  int width;
1039  int height;
1040 
1041  SIZE() : width(0), height(0) {}
1042  SIZE(int ww, int hh) : width(ww), height(hh) {}
1043 };
1044 #endif
1045 
1046 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
1047 
1054 struct ThumbImageBuffer {
1058  const char* buffer;
1062  unsigned int length;
1066  unsigned int width;
1070  unsigned int height;
1071  ThumbImageBuffer() : buffer(nullptr), length(0), width(0), height(0) {}
1072 };
1076 enum ScreenCaptureSourceType {
1080  ScreenCaptureSourceType_Unknown = -1,
1084  ScreenCaptureSourceType_Window = 0,
1088  ScreenCaptureSourceType_Screen = 1,
1092  ScreenCaptureSourceType_Custom = 2,
1093 };
1098 struct ScreenCaptureSourceInfo {
1102  ScreenCaptureSourceType type;
1106  int64_t sourceId;
1110  const char* sourceName;
1114  ThumbImageBuffer thumbImage;
1118  ThumbImageBuffer iconImage;
1122  const char* processPath;
1126  const char* sourceTitle;
1132  bool primaryMonitor;
1133  bool isOccluded;
1138  Rectangle position;
1139 #if defined(_WIN32)
1140 
1145  bool minimizeWindow;
1152  int64_t sourceDisplayId;
1153  ScreenCaptureSourceInfo() : type(ScreenCaptureSourceType_Unknown), sourceId(0), sourceName(nullptr),
1154  processPath(nullptr), sourceTitle(nullptr), primaryMonitor(false), isOccluded(false), minimizeWindow(false), sourceDisplayId(-2) {}
1155 #else
1156  ScreenCaptureSourceInfo() : type(ScreenCaptureSourceType_Unknown), sourceId(0), sourceName(nullptr), processPath(nullptr), sourceTitle(nullptr), primaryMonitor(false), isOccluded(false) {}
1157 #endif
1158 };
1162 class IScreenCaptureSourceList {
1163  protected:
1164  virtual ~IScreenCaptureSourceList(){};
1165 
1166  public:
1175  virtual unsigned int getCount() = 0;
1192  virtual ScreenCaptureSourceInfo getSourceInfo(unsigned int index) = 0;
1203  virtual void release() = 0;
1204 };
1205 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
1206 
1216 
1218  ~AdvancedAudioOptions() {}
1219 };
1220 
1230  const char* imageUrl;
1235  int fps;
1236  VIDEO_MIRROR_MODE_TYPE mirrorMode;
1237  ImageTrackOptions() : imageUrl(NULL), fps(1), mirrorMode(VIDEO_MIRROR_MODE_DISABLED) {}
1238 };
1239 
1241  const track_id_t* trackIds;
1242  int trackCount;
1243 };
1244 
1292  #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1293 
1298  Optional<bool> publishScreenCaptureAudio;
1299  #endif
1300  #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1301 
1307  Optional<bool> publishScreenCaptureVideo;
1308 
1309  #else
1310 
1337  #endif
1338 
1350 
1525 
1531 
1542 
1549 
1556 
1563 
1571 
1572  ChannelMediaOptions() {}
1573  ~ChannelMediaOptions() {}
1574 
1575  void SetAll(const ChannelMediaOptions& change) {
1576 #define SET_FROM(X) SetFrom(&X, change.X)
1577 
1578  SET_FROM(publishCameraTrack);
1579  SET_FROM(publishSecondaryCameraTrack);
1580  SET_FROM(publishThirdCameraTrack);
1581  SET_FROM(publishFourthCameraTrack);
1582  SET_FROM(publishMicrophoneTrack);
1583 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1584  SET_FROM(publishScreenCaptureAudio);
1585 #endif
1586 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1587  SET_FROM(publishScreenCaptureVideo);
1588 #else
1589  SET_FROM(publishScreenTrack);
1590  SET_FROM(publishSecondaryScreenTrack);
1591  SET_FROM(publishThirdScreenTrack);
1592  SET_FROM(publishFourthScreenTrack);
1593 #endif
1594  SET_FROM(publishTranscodedVideoTrack);
1595  SET_FROM(publishMixedAudioTrack);
1596  SET_FROM(publishLipSyncTrack);
1597  SET_FROM(publishCustomAudioTrack);
1598  SET_FROM(publishCustomAudioTrackId);
1599  SET_FROM(publishLoopbackAudioTrack);
1600  SET_FROM(publishLoopbackAudioTrackIds);
1601  SET_FROM(publishCustomVideoTrack);
1602  SET_FROM(publishEncodedVideoTrack);
1603  SET_FROM(publishMediaPlayerAudioTrack);
1604  SET_FROM(publishMediaPlayerVideoTrack);
1605  SET_FROM(autoSubscribeAudio);
1606  SET_FROM(autoSubscribeVideo);
1607  SET_FROM(publishMediaPlayerId);
1609  SET_FROM(clientRoleType);
1610  SET_FROM(audienceLatencyLevel);
1611  SET_FROM(defaultVideoStreamType);
1612  SET_FROM(channelProfile);
1613  SET_FROM(audioDelayMs);
1614  SET_FROM(mediaPlayerAudioDelayMs);
1615  SET_FROM(token);
1616  SET_FROM(enableBuiltInMediaEncryption);
1617  SET_FROM(publishRhythmPlayerTrack);
1618  SET_FROM(customVideoTrackId);
1619  SET_FROM(isAudioFilterable);
1620  SET_FROM(isInteractiveAudience);
1621  SET_FROM(parameters);
1622  SET_FROM(enableMultipath);
1623  SET_FROM(uplinkMultipathMode);
1624  SET_FROM(downlinkMultipathMode);
1625  SET_FROM(preferMultipathType);
1626  SET_FROM(channelType);
1627 #undef SET_FROM
1628  }
1629 
1630  bool operator==(const ChannelMediaOptions& o) const {
1631 #define BEGIN_COMPARE() bool b = true
1632 #define ADD_COMPARE(X) b = (b && (X == o.X))
1633 #define END_COMPARE()
1634 
1635  BEGIN_COMPARE();
1636  ADD_COMPARE(publishCameraTrack);
1637  ADD_COMPARE(publishSecondaryCameraTrack);
1638  ADD_COMPARE(publishThirdCameraTrack);
1639  ADD_COMPARE(publishFourthCameraTrack);
1640  ADD_COMPARE(publishMicrophoneTrack);
1641 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1642  ADD_COMPARE(publishScreenCaptureAudio);
1643 #endif
1644 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1645  ADD_COMPARE(publishScreenCaptureVideo);
1646 #else
1647  ADD_COMPARE(publishScreenTrack);
1648  ADD_COMPARE(publishSecondaryScreenTrack);
1649  ADD_COMPARE(publishThirdScreenTrack);
1650  ADD_COMPARE(publishFourthScreenTrack);
1651 #endif
1652  ADD_COMPARE(publishTranscodedVideoTrack);
1653  ADD_COMPARE(publishMixedAudioTrack);
1654  ADD_COMPARE(publishLipSyncTrack);
1655  ADD_COMPARE(publishCustomAudioTrack);
1656  ADD_COMPARE(publishCustomAudioTrackId);
1657  ADD_COMPARE(publishLoopbackAudioTrack);
1658  ADD_COMPARE(publishCustomVideoTrack);
1659  ADD_COMPARE(publishEncodedVideoTrack);
1660  ADD_COMPARE(publishMediaPlayerAudioTrack);
1661  ADD_COMPARE(publishMediaPlayerVideoTrack);
1662  ADD_COMPARE(autoSubscribeAudio);
1663  ADD_COMPARE(autoSubscribeVideo);
1664  ADD_COMPARE(publishMediaPlayerId);
1665  ADD_COMPARE(enableAudioRecordingOrPlayout);
1666  ADD_COMPARE(clientRoleType);
1667  ADD_COMPARE(audienceLatencyLevel);
1668  ADD_COMPARE(defaultVideoStreamType);
1669  ADD_COMPARE(channelProfile);
1670  ADD_COMPARE(audioDelayMs);
1671  ADD_COMPARE(mediaPlayerAudioDelayMs);
1672  ADD_COMPARE(token);
1673  ADD_COMPARE(enableBuiltInMediaEncryption);
1674  ADD_COMPARE(publishRhythmPlayerTrack);
1675  ADD_COMPARE(customVideoTrackId);
1676  ADD_COMPARE(isAudioFilterable);
1677  ADD_COMPARE(isInteractiveAudience);
1678  ADD_COMPARE(parameters);
1679  ADD_COMPARE(enableMultipath);
1680  ADD_COMPARE(uplinkMultipathMode);
1681  ADD_COMPARE(downlinkMultipathMode);
1682  ADD_COMPARE(preferMultipathType);
1683  ADD_COMPARE(channelType);
1684  END_COMPARE();
1685 
1686 #undef BEGIN_COMPARE
1687 #undef ADD_COMPARE
1688 #undef END_COMPARE
1689  return b;
1690  }
1691 
1692  ChannelMediaOptions& operator=(const ChannelMediaOptions& replace) {
1693  if (this != &replace) {
1694 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
1695 
1696  REPLACE_BY(publishCameraTrack);
1697  REPLACE_BY(publishSecondaryCameraTrack);
1698  REPLACE_BY(publishThirdCameraTrack);
1699  REPLACE_BY(publishFourthCameraTrack);
1700  REPLACE_BY(publishMicrophoneTrack);
1701 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(TARGET_OS_MAC) || defined(__OHOS__)
1702  REPLACE_BY(publishScreenCaptureAudio);
1703 #endif
1704 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
1705  REPLACE_BY(publishScreenCaptureVideo);
1706 #else
1707  REPLACE_BY(publishScreenTrack);
1708  REPLACE_BY(publishSecondaryScreenTrack);
1709  REPLACE_BY(publishThirdScreenTrack);
1710  REPLACE_BY(publishFourthScreenTrack);
1711 #endif
1712  REPLACE_BY(publishTranscodedVideoTrack);
1713  REPLACE_BY(publishMixedAudioTrack);
1714  REPLACE_BY(publishLipSyncTrack);
1715  REPLACE_BY(publishCustomAudioTrack);
1716  REPLACE_BY(publishCustomAudioTrackId);
1717  REPLACE_BY(publishLoopbackAudioTrack);
1718  REPLACE_BY(publishLoopbackAudioTrackIds);
1719  REPLACE_BY(publishCustomVideoTrack);
1720  REPLACE_BY(publishEncodedVideoTrack);
1721  REPLACE_BY(publishMediaPlayerAudioTrack);
1722  REPLACE_BY(publishMediaPlayerVideoTrack);
1723  REPLACE_BY(autoSubscribeAudio);
1724  REPLACE_BY(autoSubscribeVideo);
1725  REPLACE_BY(publishMediaPlayerId);
1726  REPLACE_BY(enableAudioRecordingOrPlayout);
1727  REPLACE_BY(clientRoleType);
1728  REPLACE_BY(audienceLatencyLevel);
1729  REPLACE_BY(defaultVideoStreamType);
1730  REPLACE_BY(channelProfile);
1731  REPLACE_BY(audioDelayMs);
1732  REPLACE_BY(mediaPlayerAudioDelayMs);
1733  REPLACE_BY(token);
1734  REPLACE_BY(enableBuiltInMediaEncryption);
1735  REPLACE_BY(publishRhythmPlayerTrack);
1736  REPLACE_BY(customVideoTrackId);
1737  REPLACE_BY(isAudioFilterable);
1738  REPLACE_BY(isInteractiveAudience);
1739  REPLACE_BY(parameters);
1740  REPLACE_BY(enableMultipath);
1741  REPLACE_BY(uplinkMultipathMode);
1742  REPLACE_BY(downlinkMultipathMode);
1743  REPLACE_BY(preferMultipathType);
1744  REPLACE_BY(channelType);
1745 #undef REPLACE_BY
1746  }
1747  return *this;
1748  }
1749 };
1750 
1754 enum PROXY_TYPE {
1758  NONE_PROXY_TYPE = 0,
1763  UDP_PROXY_TYPE = 1,
1768  TCP_PROXY_TYPE = 2,
1772  LOCAL_PROXY_TYPE = 3,
1777  TCP_PROXY_AUTO_FALLBACK_TYPE = 4,
1780  HTTP_PROXY_TYPE = 5,
1783  HTTPS_PROXY_TYPE = 6,
1784 };
1785 
1789 enum FeatureType {
1793  VIDEO_VIRTUAL_BACKGROUND = 1,
1797  VIDEO_BEAUTY_EFFECT = 2,
1798 };
1799 
1822 
1824 };
1825 
1837  public:
1838  virtual ~IRtcEngineEventHandler() {}
1839 
1840  virtual const char* eventHandlerType() const { return "event_handler"; }
1841 
1862  virtual void onJoinChannelSuccess(const char* channel, uid_t uid, int elapsed) {
1863  (void)channel;
1864  (void)uid;
1865  (void)elapsed;
1866  }
1867 
1882  virtual void onRejoinChannelSuccess(const char* channel, uid_t uid, int elapsed) {
1883  (void)channel;
1884  (void)uid;
1885  (void)elapsed;
1886  }
1887 
1907  virtual void onProxyConnected(const char* channel, uid_t uid, PROXY_TYPE proxyType, const char* localProxyIp, int elapsed) {
1908  (void)channel;
1909  (void)uid;
1910  (void)proxyType;
1911  (void)localProxyIp;
1912  (void)elapsed;
1913  }
1914 
1927  virtual void onError(int err, const char* msg) {
1928  (void)err;
1929  (void)msg;
1930  }
1931 
1950  virtual void onAudioQuality(uid_t uid, int quality, unsigned short delay, unsigned short lost) __deprecated {
1951  (void)uid;
1952  (void)quality;
1953  (void)delay;
1954  (void)lost;
1955  }
1956 
1967  virtual void onLastmileProbeResult(const LastmileProbeResult& result) {
1968  (void)result;
1969  }
1970 
2007  virtual void onAudioVolumeIndication(const AudioVolumeInfo* speakers, unsigned int speakerNumber,
2008  int totalVolume) {
2009  (void)speakers;
2010  (void)speakerNumber;
2011  (void)totalVolume;
2012  }
2013 
2028  virtual void onLeaveChannel(const RtcStats& stats) { (void)stats; }
2029 
2040  virtual void onRtcStats(const RtcStats& stats) { (void)stats; }
2041 
2056  virtual void onAudioDeviceStateChanged(const char* deviceId, int deviceType, int deviceState) {
2057  (void)deviceId;
2058  (void)deviceType;
2059  (void)deviceState;
2060  }
2061 
2076  virtual void onAudioMixingPositionChanged(int64_t position) {}
2077 
2091  virtual void onAudioMixingFinished() __deprecated {}
2092 
2102  virtual void onAudioEffectFinished(int soundId) {}
2103 
2119  virtual void onVideoDeviceStateChanged(const char* deviceId, int deviceType, int deviceState) {
2120  (void)deviceId;
2121  (void)deviceType;
2122  (void)deviceState;
2123  }
2124 
2155  virtual void onNetworkQuality(uid_t uid, int txQuality, int rxQuality) {
2156  (void)uid;
2157  (void)txQuality;
2158  (void)rxQuality;
2159  }
2160 
2167  virtual void onIntraRequestReceived() {}
2168 
2181  virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo& info) {
2182  (void)info;
2183  }
2184 
2198  virtual void onLastmileQuality(int quality) { (void)quality; }
2199 
2221  virtual void onFirstLocalVideoFrame(VIDEO_SOURCE_TYPE source, int width, int height, int elapsed) {
2222  (void)source;
2223  (void)width;
2224  (void)height;
2225  (void)elapsed;
2226  }
2227 
2249  virtual void onFirstLocalVideoFramePublished(VIDEO_SOURCE_TYPE source, int elapsed) {
2250  (void)source;
2251  (void)elapsed;
2252  }
2253 
2275  virtual void onFirstRemoteVideoDecoded(uid_t uid, int width, int height, int elapsed) __deprecated {
2276  (void)uid;
2277  (void)width;
2278  (void)height;
2279  (void)elapsed;
2280  }
2281 
2294  virtual void onVideoSizeChanged(VIDEO_SOURCE_TYPE sourceType, uid_t uid, int width, int height, int rotation) {
2295  (void)uid;
2296  (void)width;
2297  (void)height;
2298  (void)rotation;
2299  }
2300 
2313  virtual void onLocalVideoEvent(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_EVENT_TYPE event) {
2314  (void)source;
2315  (void)event;
2316  }
2317 
2369  virtual void onLocalVideoStateChanged(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_STREAM_STATE state, LOCAL_VIDEO_STREAM_REASON reason) {
2370  (void)source;
2371  (void)state;
2372  (void)reason;
2373  }
2374 
2389  virtual void onRemoteVideoStateChanged(uid_t uid, REMOTE_VIDEO_STATE state, REMOTE_VIDEO_STATE_REASON reason, int elapsed) {
2390  (void)uid;
2391  (void)state;
2392  (void)reason;
2393  (void)elapsed;
2394  }
2395 
2412  virtual void onFirstRemoteVideoFrame(uid_t uid, int width, int height, int elapsed) {
2413  (void)uid;
2414  (void)width;
2415  (void)height;
2416  (void)elapsed;
2417  }
2418 
2443  virtual void onUserJoined(uid_t uid, int elapsed) {
2444  (void)uid;
2445  (void)elapsed;
2446  }
2447 
2467  virtual void onUserOffline(uid_t uid, USER_OFFLINE_REASON_TYPE reason) {
2468  (void)uid;
2469  (void)reason;
2470  }
2471 
2489  virtual void onUserMuteAudio(uid_t uid, bool muted) {
2490  (void)uid;
2491  (void)muted;
2492  }
2493 
2511  virtual void onUserMuteVideo(uid_t uid, bool muted) {
2512  (void)uid;
2513  (void)muted;
2514  }
2515 
2531  virtual void onUserEnableVideo(uid_t uid, bool enabled) {
2532  (void)uid;
2533  (void)enabled;
2534  }
2535 
2541  virtual void onUserStateChanged(uid_t uid, REMOTE_USER_STATE state) {
2542  (void)uid;
2543  (void)state;
2544  }
2545 
2566  virtual void onUserEnableLocalVideo(uid_t uid, bool enabled) __deprecated {
2567  (void)uid;
2568  (void)enabled;
2569  }
2570 
2582  virtual void onRemoteAudioStats(const RemoteAudioStats& stats) {
2583  (void)stats;
2584  }
2585 
2595  virtual void onLocalAudioStats(const LocalAudioStats& stats) {
2596  (void)stats;
2597  }
2598 
2610  virtual void onLocalVideoStats(VIDEO_SOURCE_TYPE source, const LocalVideoStats& stats) {
2611  (void)source;
2612  (void)stats;
2613  }
2614 
2626  virtual void onRemoteVideoStats(const RemoteVideoStats& stats) {
2627  (void)stats;
2628  }
2629 
2640  virtual void onCameraReady() __deprecated {}
2641 
2653  virtual void onCameraFocusAreaChanged(int x, int y, int width, int height) {
2654  (void)x;
2655  (void)y;
2656  (void)width;
2657  (void)height;
2658  }
2674  virtual void onCameraExposureAreaChanged(int x, int y, int width, int height) {
2675  (void)x;
2676  (void)y;
2677  (void)width;
2678  (void)height;
2679  }
2680 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
2681 
2719  virtual void onFacePositionChanged(int imageWidth, int imageHeight,
2720  const Rectangle* vecRectangle, const int* vecDistance,
2721  int numFaces) {
2722  (void) imageWidth;
2723  (void) imageHeight;
2724  (void) vecRectangle;
2725  (void) vecDistance;
2726  (void) numFaces;
2727  }
2728 #endif
2729 
2740  virtual void onVideoStopped() __deprecated {}
2741 
2753  virtual void onAudioMixingStateChanged(AUDIO_MIXING_STATE_TYPE state, AUDIO_MIXING_REASON_TYPE reason) {
2754  (void)state;
2755  (void)reason;
2756  }
2757 
2773  virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason) {
2774  (void)state;
2775  (void)reason;
2776  }
2777 
2790  virtual void onConnectionLost() {}
2791 
2810  virtual void onConnectionInterrupted() __deprecated {}
2811 
2817  virtual void onConnectionBanned() __deprecated {}
2818 
2836  virtual void onStreamMessage(uid_t uid, int streamId, const char* data, size_t length, uint64_t sentTs) {
2837  (void)uid;
2838  (void)streamId;
2839  (void)data;
2840  (void)length;
2841  (void)sentTs;
2842  }
2843 
2861  virtual void onStreamMessageError(uid_t uid, int streamId, int code, int missed, int cached) {
2862  (void)uid;
2863  (void)streamId;
2864  (void)code;
2865  (void)missed;
2866  (void)cached;
2867  }
2868 
2882  virtual void onRdtMessage(uid_t userId, RdtStreamType type, const char *data, size_t length) {
2883  (void)userId;
2884  (void)type;
2885  (void)data;
2886  (void)length;
2887  };
2888 
2897  virtual void onRdtStateChanged(uid_t userId, RdtState state) {
2898  (void)userId;
2899  (void)state;
2900  }
2901 
2913  virtual void onMediaControlMessage(uid_t userId, const char* data, size_t length) {
2914  (void)userId;
2915  (void)data;
2916  (void)length;
2917  }
2918 
2936  virtual void onRequestToken() {}
2937 
2958  virtual void onTokenPrivilegeWillExpire(const char* token) {
2959  (void)token;
2960  }
2961 
2967  virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error) {
2968  (void)error;
2969  }
2970 
2988  virtual void onFirstLocalAudioFramePublished(int elapsed) {
2989  (void)elapsed;
2990  }
2991 
3013  virtual void onFirstRemoteAudioDecoded(uid_t uid, int elapsed) __deprecated {
3014  (void)uid;
3015  (void)elapsed;
3016  }
3017 
3029  virtual void onFirstRemoteAudioFrame(uid_t uid, int elapsed) __deprecated {
3030  (void)uid;
3031  (void)elapsed;
3032  }
3033 
3050  virtual void onLocalAudioStateChanged(LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reason) {
3051  (void)state;
3052  (void)reason;
3053  }
3054 
3074  virtual void onRemoteAudioStateChanged(uid_t uid, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason, int elapsed) {
3075  (void)uid;
3076  (void)state;
3077  (void)reason;
3078  (void)elapsed;
3079  }
3080 
3098  virtual void onActiveSpeaker(uid_t uid) {
3099  (void)uid;
3100  }
3101 
3106  virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result) { (void)result; }
3107 
3132  virtual void onSnapshotTaken(uid_t uid, const char* filePath, int width, int height, int errCode) {
3133  (void)uid;
3134  (void)filePath;
3135  (void)width;
3136  (void)height;
3137  (void)errCode;
3138  }
3139 
3163  virtual void onClientRoleChanged(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions& newRoleOptions) {
3164  (void)oldRole;
3165  (void)newRole;
3166  (void)newRoleOptions;
3167  }
3168 
3183  virtual void onClientRoleChangeFailed(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole) {
3184  (void)reason;
3185  (void)currentRole;
3186  }
3187 
3204  virtual void onAudioDeviceVolumeChanged(MEDIA_DEVICE_TYPE deviceType, int volume, bool muted) {
3205  (void)deviceType;
3206  (void)volume;
3207  (void)muted;
3208  }
3209 
3224  virtual void onRtmpStreamingStateChanged(const char* url, RTMP_STREAM_PUBLISH_STATE state,
3225  RTMP_STREAM_PUBLISH_REASON reason) {
3226  (void)url;
3227  (void)state;
3228  (void)reason;
3229  }
3230 
3238  virtual void onRtmpStreamingEvent(const char* url, RTMP_STREAMING_EVENT eventCode) {
3239  (void)url;
3240  (void)eventCode;
3241  }
3242 
3254  virtual void onTranscodingUpdated() {}
3255 
3264  virtual void onAudioRoutingChanged(int routing) { (void)routing; }
3265 
3276  virtual void onChannelMediaRelayStateChanged(int state, int code) {
3277  (void)state;
3278  (void)code;
3279  }
3280 
3304  virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool isFallbackOrRecover) {
3305  (void)uid;
3306  (void)isFallbackOrRecover;
3307  }
3308 
3327  virtual void onRemoteAudioTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated {
3328  (void)uid;
3329  (void)delay;
3330  (void)lost;
3331  (void)rxKBitRate;
3332  }
3333 
3351  virtual void onRemoteVideoTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated {
3352  (void)uid;
3353  (void)delay;
3354  (void)lost;
3355  (void)rxKBitRate;
3356  }
3357 
3370  CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason) {
3371  (void)state;
3372  (void)reason;
3373  }
3374 
3387  virtual void onNetworkTypeChanged(NETWORK_TYPE type) {
3388  (void)type;
3389  }
3390 
3401  virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType) {
3402  (void)errorType;
3403  }
3404 
3415  virtual void onPermissionError(PERMISSION_TYPE permissionType) {
3416  (void)permissionType;
3417  }
3418 
3419 #if defined(__ANDROID__)
3420 
3424  virtual void onPermissionGranted(agora::rtc::PERMISSION_TYPE permissionType) {}
3425 #endif
3426 
3441  virtual void onLocalUserRegistered(uid_t uid, const char* userAccount) {
3442  (void)uid;
3443  (void)userAccount;
3444  }
3445 
3458  virtual void onUserInfoUpdated(uid_t uid, const UserInfo& info) {
3459  (void)uid;
3460  (void)info;
3461  }
3462 
3469  virtual void onUserAccountUpdated(uid_t uid, const char* userAccount){
3470  (void)uid;
3471  (void)userAccount;
3472  }
3473 
3490  virtual void onVideoRenderingTracingResult(uid_t uid, MEDIA_TRACE_EVENT currentEvent, VideoRenderingTracingInfo tracingInfo) {
3491  (void)uid;
3492  (void)currentEvent;
3493  (void)tracingInfo;
3494  }
3495 
3508  virtual void onLocalVideoTranscoderError(const TranscodingVideoStream& stream, VIDEO_TRANSCODER_ERROR error){
3509  (void)stream;
3510  (void)error;
3511  }
3512 
3519  virtual void onUploadLogResult(const char* requestId, bool success, UPLOAD_ERROR_REASON reason) {
3520  (void)requestId;
3521  (void)success;
3522  (void)reason;
3523  }
3524 
3535  virtual void onAudioSubscribeStateChanged(const char* channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState) {
3536  (void)channel;
3537  (void)uid;
3538  (void)oldState;
3539  (void)newState;
3540  (void)elapseSinceLastState;
3541  }
3542 
3553  virtual void onVideoSubscribeStateChanged(const char* channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState) {
3554  (void)channel;
3555  (void)uid;
3556  (void)oldState;
3557  (void)newState;
3558  (void)elapseSinceLastState;
3559  }
3560 
3570  virtual void onAudioPublishStateChanged(const char* channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState) {
3571  (void)channel;
3572  (void)oldState;
3573  (void)newState;
3574  (void)elapseSinceLastState;
3575  }
3576 
3587  virtual void onVideoPublishStateChanged(VIDEO_SOURCE_TYPE source, const char* channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState) {
3588  (void)source;
3589  (void)channel;
3590  (void)oldState;
3591  (void)newState;
3592  (void)elapseSinceLastState;
3593  }
3594 
3614  virtual void onTranscodedStreamLayoutInfo(uid_t uid, int width, int height, int layoutCount,const VideoLayout* layoutlist) {
3615  (void)uid;
3616  (void)width;
3617  (void)height;
3618  (void)layoutCount;
3619  (void)layoutlist;
3620  }
3621 
3630  virtual void onAudioMetadataReceived(uid_t uid, const char* metadata, size_t length) {
3631  (void)uid;
3632  (void)metadata;
3633  (void)length;
3634  }
3635 
3647  virtual void onExtensionEventWithContext(const ExtensionContext &context, const char* key, const char* value) {
3648  (void)context;
3649  (void)key;
3650  (void)value;
3651  }
3652 
3662  virtual void onExtensionStartedWithContext(const ExtensionContext &context) {
3663  (void)context;
3664  }
3665 
3675  virtual void onExtensionStoppedWithContext(const ExtensionContext &context) {
3676  (void)context;
3677  }
3678 
3693  virtual void onExtensionErrorWithContext(const ExtensionContext &context, int error, const char* message) {
3694  (void)context;
3695  (void)error;
3696  (void)message;
3697  }
3698 
3705  virtual void onSetRtmFlagResult(int code) {
3706  (void)code;
3707  }
3708 
3720  virtual void onMultipathStats(const MultipathStats& stats) {
3721  (void)stats;
3722  }
3723 
3737  virtual void onRenewTokenResult(const char* token, RENEW_TOKEN_ERROR_CODE code) {
3738  (void)token;
3739  (void)code;
3740  }
3741 };
3742 
3747  public:
3748  virtual ~IVideoDeviceCollection() {}
3749 
3756  virtual int getCount() = 0;
3757 
3767  virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3768 
3779  virtual int getDevice(int index, char deviceNameUTF8[MAX_DEVICE_ID_LENGTH],
3780  char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3781 
3785  virtual void release() = 0;
3786 };
3787 
3792  public:
3793  virtual ~IVideoDeviceManager() {}
3808 
3819  virtual int setDevice(const char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3820 
3833  virtual int getDevice(char deviceIdUTF8[MAX_DEVICE_ID_LENGTH]) = 0;
3834 
3835 #if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__)) || \
3836  (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)
3837 
3856  virtual int numberOfCapabilities(const char* deviceIdUTF8) = 0;
3857 
3879  virtual int getCapability(const char* deviceIdUTF8, const uint32_t deviceCapabilityNumber, VideoFormat& capability) = 0;
3880 #endif
3881 
3894  virtual int startDeviceTest(view_t hwnd) = 0;
3895 
3902  virtual int stopDeviceTest() = 0;
3903 
3910  virtual void release() = 0;
3911 };
3912 
3919  public:
3920  virtual ~IVideoEffectObject() {}
3921 
3927  enum class VIDEO_EFFECT_NODE_ID : uint32_t {
3931  BEAUTY = 1U << 0,
3935  STYLE_MAKEUP = 1U << 1,
3939  FILTER = 1U << 2,
3943  STICKER = 1U << 3,
3944  };
3945 
3955  SAVE = 1,
3959  RESET = 2,
3960  };
3961 
3990  virtual int addOrUpdateVideoEffect(uint32_t nodeId, const char* templateName) = 0;
3991 
4004  virtual int removeVideoEffect(uint32_t nodeId) = 0;
4005 
4018  virtual int performVideoEffectAction(uint32_t nodeId, VIDEO_EFFECT_ACTION actionId) = 0;
4019 
4033  virtual int setVideoEffectStringParam(const char* option, const char* key, const char* param) = 0;
4034 
4048  virtual int setVideoEffectFloatParam(const char* option, const char* key, float param) = 0;
4049 
4063  virtual int setVideoEffectIntParam(const char* option, const char* key, int param) = 0;
4064 
4080  virtual int setVideoEffectBoolParam(const char* option, const char* key, bool param) = 0;
4081 
4098  virtual float getVideoEffectFloatParam(const char* option, const char* key) = 0;
4099 
4115  virtual int getVideoEffectIntParam(const char* option, const char* key) = 0;
4116 
4129  virtual bool getVideoEffectBoolParam(const char* option, const char* key) = 0;
4130 
4131 };
4132 
4147  const char* appId;
4153  void* context;
4157  CHANNEL_PROFILE_TYPE channelProfile;
4158 
4162  const char* license;
4163 
4168  AUDIO_SCENARIO_TYPE audioScenario;
4174  unsigned int areaCode;
4175 
4196 
4201 
4210 
4220 
4228 
4229 
4235  const char* parameters;
4236 
4238  : eventHandler(NULL), appId(NULL), context(NULL), channelProfile(CHANNEL_PROFILE_LIVE_BROADCASTING),
4239  license(NULL), audioScenario(AUDIO_SCENARIO_DEFAULT), areaCode(AREA_CODE_GLOB),
4241 };
4242 
4246 public:
4247  virtual ~IMetadataObserver() {}
4248 
4253  {
4262  };
4267  {
4268  INVALID_METADATA_SIZE_IN_BYTE = -1,
4269  DEFAULT_METADATA_SIZE_IN_BYTE = 512,
4270  MAX_METADATA_SIZE_IN_BYTE = 1024
4271  };
4272 
4276  struct Metadata
4277  {
4281  const char* channelId;
4287  unsigned int uid;
4291  unsigned int size;
4295  unsigned char *buffer;
4299  long long timeStampMs;
4300 
4301  Metadata() : channelId(NULL), uid(0), size(0), buffer(NULL), timeStampMs(0) {}
4302  };
4303 
4316  virtual int getMaxMetadataSize() { return DEFAULT_METADATA_SIZE_IN_BYTE; }
4317 
4335  virtual bool onReadyToSendMetadata(Metadata &metadata, VIDEO_SOURCE_TYPE source_type) = 0;
4336 
4343  virtual void onMetadataReceived(const Metadata& metadata) = 0;
4344 };
4345 
4351 enum DIRECT_CDN_STREAMING_REASON {
4352  // No error occurs.
4356  DIRECT_CDN_STREAMING_REASON_OK = 0,
4357  // A general error occurs (no specified reason).
4361  DIRECT_CDN_STREAMING_REASON_FAILED = 1,
4362  // Audio publication error.
4367  DIRECT_CDN_STREAMING_REASON_AUDIO_PUBLICATION = 2,
4368  // Video publication error.
4373  DIRECT_CDN_STREAMING_REASON_VIDEO_PUBLICATION = 3,
4374 
4378  DIRECT_CDN_STREAMING_REASON_NET_CONNECT = 4,
4379  // Already exist stream name.
4383  DIRECT_CDN_STREAMING_REASON_BAD_NAME = 5,
4384 };
4385 
4391 enum DIRECT_CDN_STREAMING_STATE {
4392 
4396  DIRECT_CDN_STREAMING_STATE_IDLE = 0,
4397 
4402  DIRECT_CDN_STREAMING_STATE_RUNNING = 1,
4403 
4408  DIRECT_CDN_STREAMING_STATE_STOPPED = 2,
4409 
4414  DIRECT_CDN_STREAMING_STATE_FAILED = 3,
4415 
4421  DIRECT_CDN_STREAMING_STATE_RECOVERING = 4,
4422 };
4423 
4434 
4439 
4443  int fps;
4444 
4449 
4454 };
4455 
4463  public:
4464  virtual ~IDirectCdnStreamingEventHandler() {}
4465 
4480  virtual void onDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_REASON reason, const char* message) {
4481  (void)state;
4482  (void)reason;
4483  (void)message;
4484  };
4485 
4497  (void)stats;
4498  };
4499 };
4500 
4547 
4550 
4551  void SetAll(const DirectCdnStreamingMediaOptions& change) {
4552 #define SET_FROM(X) SetFrom(&X, change.X)
4553  SET_FROM(publishCameraTrack);
4554  SET_FROM(publishMicrophoneTrack);
4555  SET_FROM(publishCustomAudioTrack);
4556  SET_FROM(publishCustomVideoTrack);
4557  SET_FROM(publishMediaPlayerAudioTrack);
4558  SET_FROM(publishMediaPlayerId);
4559  SET_FROM(customVideoTrackId);
4560 #undef SET_FROM
4561  }
4562 
4563  bool operator==(const DirectCdnStreamingMediaOptions& o) const {
4564 #define BEGIN_COMPARE() bool b = true
4565 #define ADD_COMPARE(X) b = (b && (X == o.X))
4566 #define END_COMPARE()
4567 
4568  BEGIN_COMPARE();
4569  ADD_COMPARE(publishCameraTrack);
4570  ADD_COMPARE(publishMicrophoneTrack);
4571  ADD_COMPARE(publishCustomAudioTrack);
4572  ADD_COMPARE(publishCustomVideoTrack);
4573  ADD_COMPARE(publishMediaPlayerAudioTrack);
4574  ADD_COMPARE(customVideoTrackId);
4575  ADD_COMPARE(publishMediaPlayerId);
4576  END_COMPARE();
4577 
4578 #undef BEGIN_COMPARE
4579 #undef ADD_COMPARE
4580 #undef END_COMPARE
4581  return b;
4582  }
4583 
4584  DirectCdnStreamingMediaOptions& operator=(const DirectCdnStreamingMediaOptions& replace) {
4585  if (this != &replace) {
4586 #define REPLACE_BY(X) ReplaceBy(&X, replace.X)
4587 
4588  REPLACE_BY(publishCameraTrack);
4589  REPLACE_BY(publishMicrophoneTrack);
4590  REPLACE_BY(publishCustomAudioTrack);
4591  REPLACE_BY(publishCustomVideoTrack);
4592  REPLACE_BY(publishMediaPlayerAudioTrack);
4593  REPLACE_BY(customVideoTrackId);
4594  REPLACE_BY(publishMediaPlayerId);
4595 #undef REPLACE_BY
4596  }
4597  return *this;
4598  }
4599 };
4600 
4608  agora::media::MEDIA_SOURCE_TYPE mediaSourceType;
4609 
4615  uid_t remoteUid;
4616 
4628  const char* channelId;
4629 
4633  uid_t localUid;
4634 
4635  ExtensionInfo() : mediaSourceType(agora::media::UNKNOWN_MEDIA_SOURCE), remoteUid(0), channelId(NULL), localUid(0) {}
4636 };
4637 
4638 class IMediaPlayer;
4639 class IMediaRecorder;
4640 
4653 using RtcEngineReleaseCallback = void(*)();
4654 
4662  public:
4687  AGORA_CPP_API static void release(RtcEngineReleaseCallback callback = nullptr);
4688 
4713  virtual int initialize(const RtcEngineContext& context) = 0;
4714 
4725  virtual int queryInterface(INTERFACE_ID_TYPE iid, void** inter) = 0;
4726 
4727 
4736  virtual const char* getVersion(int* build) = 0;
4737 
4746  virtual const char* getErrorDescription(int code) = 0;
4747 
4765  virtual int queryCodecCapability(CodecCapInfo* codecInfo, int& size) = 0;
4766 
4783  virtual int queryDeviceScore() = 0;
4784 
4842  virtual int preloadChannel(const char* token, const char* channelId, uid_t uid) = 0;
4843 
4908  virtual int preloadChannelWithUserAccount(const char* token, const char* channelId, const char* userAccount) = 0;
4909 
4931  virtual int updatePreloadChannelToken(const char* token) = 0;
4932 
5004  virtual int joinChannel(const char* token, const char* channelId, const char* info, uid_t uid) = 0;
5005 
5081  virtual int joinChannel(const char* token, const char* channelId, uid_t uid, const ChannelMediaOptions& options) = 0;
5082 
5102  virtual int updateChannelMediaOptions(const ChannelMediaOptions& options) = 0;
5103 
5133  virtual int leaveChannel() = 0;
5134 
5162  virtual int leaveChannel(const LeaveChannelOptions& options) = 0;
5163 
5191  virtual int renewToken(const char* token) = 0;
5192 
5217  virtual int setChannelProfile(CHANNEL_PROFILE_TYPE profile) = 0;
5218 
5260  virtual int setClientRole(CLIENT_ROLE_TYPE role) = 0;
5261 
5312  virtual int setClientRole(CLIENT_ROLE_TYPE role, const ClientRoleOptions& options) = 0;
5313 
5340  virtual int startEchoTest(const EchoTestConfiguration& config) = 0;
5341 
5354  virtual int stopEchoTest() = 0;
5355 
5356 #if defined(__APPLE__) && TARGET_OS_IOS
5357 
5399  virtual int enableMultiCamera(bool enabled, const CameraCapturerConfiguration& config) = 0;
5400 #endif
5401 
5429  virtual int enableVideo() = 0;
5430 
5457  virtual int disableVideo() = 0;
5458 
5475  virtual int startPreview() = 0;
5476 
5496  virtual int startPreview(VIDEO_SOURCE_TYPE sourceType) = 0;
5497 
5510  virtual int stopPreview() = 0;
5511 
5527  virtual int stopPreview(VIDEO_SOURCE_TYPE sourceType) = 0;
5528 
5553  virtual int startLastmileProbeTest(const LastmileProbeConfig& config) = 0;
5554 
5562  virtual int stopLastmileProbeTest() = 0;
5563 
5590 
5623  virtual int setBeautyEffectOptions(bool enabled, const BeautyOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5660  virtual int setFaceShapeBeautyOptions(bool enabled, const FaceShapeBeautyOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5694  virtual int setFaceShapeAreaOptions(const FaceShapeAreaOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5695 
5717  virtual int getFaceShapeBeautyOptions(FaceShapeBeautyOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5718 
5741  virtual int getFaceShapeAreaOptions(agora::rtc::FaceShapeAreaOptions::FACE_SHAPE_AREA shapeArea, FaceShapeAreaOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5742 
5772  virtual int setFilterEffectOptions(bool enabled, const FilterEffectOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5773 
5774 
5790  virtual agora_refptr<IVideoEffectObject> createVideoEffectObject(const char* bundlePath, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5791 
5792 
5805 
5852  virtual int setLowlightEnhanceOptions(bool enabled, const LowlightEnhanceOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5898  virtual int setVideoDenoiserOptions(bool enabled, const VideoDenoiserOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5935  virtual int setColorEnhanceOptions(bool enabled, const ColorEnhanceOptions& options, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5936 
5997  virtual int enableVirtualBackground(bool enabled, VirtualBackgroundSource backgroundSource, SegmentationProperty segproperty, agora::media::MEDIA_SOURCE_TYPE type = agora::media::PRIMARY_CAMERA_SOURCE) = 0;
5998 
6026  virtual int setupRemoteVideo(const VideoCanvas& canvas) = 0;
6027 
6060  virtual int setupLocalVideo(const VideoCanvas& canvas) = 0;
6061 
6129  virtual int setVideoScenario(VIDEO_APPLICATION_SCENARIO_TYPE scenarioType) = 0;
6130 
6149  virtual int setVideoQoEPreference(VIDEO_QOE_PREFERENCE_TYPE qoePreference) = 0;
6150 
6175  virtual int enableAudio() = 0;
6176 
6198  virtual int disableAudio() = 0;
6199 
6228  virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile, AUDIO_SCENARIO_TYPE scenario) __deprecated = 0;
6229 
6248  virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile) = 0;
6270  virtual int setAudioScenario(AUDIO_SCENARIO_TYPE scenario) = 0;
6302  virtual int enableLocalAudio(bool enabled) = 0;
6303 
6324  virtual int muteLocalAudioStream(bool mute) = 0;
6325 
6393  virtual int muteAllRemoteAudioStreams(bool mute) = 0;
6394 
6412  virtual int muteRemoteAudioStream(uid_t uid, bool mute) = 0;
6413 
6436  virtual int muteLocalVideoStream(bool mute) = 0;
6437 
6467  virtual int enableLocalVideo(bool enabled) = 0;
6468 
6534  virtual int muteAllRemoteVideoStreams(bool mute) = 0;
6535 
6573  virtual int setRemoteDefaultVideoStreamType(VIDEO_STREAM_TYPE streamType) = 0;
6574 
6592  virtual int muteRemoteVideoStream(uid_t uid, bool mute) = 0;
6593 
6632  virtual int setRemoteVideoStreamType(uid_t uid, VIDEO_STREAM_TYPE streamType) = 0;
6633 
6658  virtual int setRemoteVideoSubscriptionOptions(uid_t uid, const VideoSubscriptionOptions &options) = 0;
6659 
6687  virtual int setSubscribeAudioBlocklist(uid_t* uidList, int uidNumber) = 0;
6688 
6715  virtual int setSubscribeAudioAllowlist(uid_t* uidList, int uidNumber) = 0;
6716 
6744  virtual int setSubscribeVideoBlocklist(uid_t* uidList, int uidNumber) = 0;
6745 
6772  virtual int setSubscribeVideoAllowlist(uid_t* uidList, int uidNumber) = 0;
6773 
6806  virtual int enableAudioVolumeIndication(int interval, int smooth, bool reportVad) = 0;
6807 
6834  virtual int startAudioRecording(const char* filePath,
6835  AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
6870  virtual int startAudioRecording(const char* filePath,
6871  int sampleRate,
6872  AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
6873 
6894  virtual int startAudioRecording(const AudioRecordingConfiguration& config) = 0;
6895 
6913 
6921  virtual int stopAudioRecording() = 0;
6922 
6937 
6947  virtual int destroyMediaPlayer(agora_refptr<IMediaPlayer> media_player) = 0;
6948 
6970 
6985  virtual int destroyMediaRecorder(agora_refptr<IMediaRecorder> mediaRecorder) = 0;
6986 
7038  virtual int startAudioMixing(const char* filePath, bool loopback, int cycle) = 0;
7039 
7094  virtual int startAudioMixing(const char* filePath, bool loopback, int cycle, int startPos) = 0;
7095 
7109  virtual int stopAudioMixing() = 0;
7110 
7124  virtual int pauseAudioMixing() = 0;
7125 
7138  virtual int resumeAudioMixing() = 0;
7139 
7161  virtual int selectAudioTrack(int index) = 0;
7173  virtual int getAudioTrackCount() = 0;
7174 
7192  virtual int adjustAudioMixingVolume(int volume) = 0;
7193 
7210  virtual int adjustAudioMixingPublishVolume(int volume) = 0;
7211 
7226  virtual int getAudioMixingPublishVolume() = 0;
7227 
7243  virtual int adjustAudioMixingPlayoutVolume(int volume) = 0;
7244 
7259  virtual int getAudioMixingPlayoutVolume() = 0;
7260 
7274  virtual int getAudioMixingDuration() = 0;
7275 
7295 
7312  virtual int setAudioMixingPosition(int pos /*in ms*/) = 0;
7313 
7340  virtual int setAudioMixingDualMonoMode(media::AUDIO_MIXING_DUAL_MONO_MODE mode) = 0;
7341 
7361  virtual int setAudioMixingPitch(int pitch) = 0;
7362 
7381  virtual int setAudioMixingPlaybackSpeed(int speed) = 0;
7382 
7396  virtual int getEffectsVolume() = 0;
7410  virtual int setEffectsVolume(int volume) = 0;
7441  virtual int preloadEffect(int soundId, const char* filePath, int startPos = 0) = 0;
7494  virtual int playEffect(int soundId, const char* filePath, int loopCount, double pitch, double pan, int gain, bool publish = false, int startPos = 0) = 0;
7525  virtual int playAllEffects(int loopCount, double pitch, double pan, int gain, bool publish = false) = 0;
7526 
7537  virtual int getVolumeOfEffect(int soundId) = 0;
7538 
7553  virtual int setVolumeOfEffect(int soundId, int volume) = 0;
7563  virtual int pauseEffect(int soundId) = 0;
7571  virtual int pauseAllEffects() = 0;
7581  virtual int resumeEffect(int soundId) = 0;
7594  virtual int resumeAllEffects() = 0;
7609  virtual int stopEffect(int soundId) = 0;
7622  virtual int stopAllEffects() = 0;
7637  virtual int unloadEffect(int soundId) = 0;
7645  virtual int unloadAllEffects() = 0;
7665  virtual int getEffectDuration(const char* filePath) = 0;
7681  virtual int setEffectPosition(int soundId, int pos) = 0;
7693  virtual int getEffectCurrentPosition(int soundId) = 0;
7710  virtual int enableSoundPositionIndication(bool enabled) = 0;
7711 
7741  virtual int setRemoteVoicePosition(uid_t uid, double pan, double gain) = 0;
7742 
7763  virtual int enableSpatialAudio(bool enabled) = 0;
7764 
7780  virtual int setRemoteUserSpatialAudioParams(uid_t uid, const agora::SpatialAudioParams& params) = 0;
7781 
7822  virtual int setVoiceBeautifierPreset(VOICE_BEAUTIFIER_PRESET preset) = 0;
7823 
7864  virtual int setAudioEffectPreset(AUDIO_EFFECT_PRESET preset) = 0;
7865 
7908  virtual int setVoiceConversionPreset(VOICE_CONVERSION_PRESET preset) = 0;
7909 
7984  virtual int setAudioEffectParameters(AUDIO_EFFECT_PRESET preset, int param1, int param2) = 0;
7985 
8034  virtual int setVoiceBeautifierParameters(VOICE_BEAUTIFIER_PRESET preset,
8035  int param1, int param2) = 0;
8036 
8049  virtual int setVoiceConversionParameters(VOICE_CONVERSION_PRESET preset,
8050  int param1, int param2) = 0;
8051 
8065  virtual int setLocalVoicePitch(double pitch) = 0;
8066 
8087  virtual int setLocalVoiceFormant(double formantRatio) = 0;
8088 
8105  virtual int setLocalVoiceEqualization(AUDIO_EQUALIZATION_BAND_FREQUENCY bandFrequency, int bandGain) = 0;
8106 
8124  virtual int setLocalVoiceReverb(AUDIO_REVERB_TYPE reverbKey, int value) = 0;
8142  virtual int setHeadphoneEQPreset(HEADPHONE_EQUALIZER_PRESET preset) = 0;
8143 
8162  virtual int setHeadphoneEQParameters(int lowGain, int highGain) = 0;
8163 
8182  virtual int enableVoiceAITuner(bool enabled, VOICE_AI_TUNER_TYPE type) = 0;
8183 
8200  virtual int setLogFile(const char* filePath) = 0;
8201 
8219  virtual int setLogFilter(unsigned int filter) = 0;
8220 
8234  virtual int setLogLevel(commons::LOG_LEVEL level) = 0;
8235 
8269  virtual int setLogFileSize(unsigned int fileSizeInKBytes) = 0;
8270 
8279  virtual int uploadLogFile(agora::util::AString& requestId) = 0;
8280 
8296  virtual int writeLog(commons::LOG_LEVEL level, const char* fmt, ...) = 0;
8297 
8323  virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode) = 0;
8324 
8346  virtual int setRemoteRenderMode(uid_t uid, media::base::RENDER_MODE_TYPE renderMode,
8347  VIDEO_MIRROR_MODE_TYPE mirrorMode) = 0;
8368  virtual int setLocalRenderTargetFps(VIDEO_SOURCE_TYPE sourceType, int targetFps) = 0;
8388  virtual int setRemoteRenderTargetFps(int targetFps) = 0;
8389  // The following APIs are either deprecated and going to deleted.
8390 
8411  virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode) __deprecated = 0;
8412 
8424  virtual int setLocalVideoMirrorMode(VIDEO_MIRROR_MODE_TYPE mirrorMode) __deprecated = 0;
8425 
8452  virtual int enableDualStreamMode(bool enabled) __deprecated = 0;
8453 
8484  virtual int enableDualStreamMode(bool enabled, const SimulcastStreamConfig& streamConfig) __deprecated = 0;
8485 
8486 
8518  virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode) = 0;
8519 
8538  virtual int setSimulcastConfig(const SimulcastConfig& simulcastConfig) = 0;
8539 
8580  virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode, const SimulcastStreamConfig& streamConfig) = 0;
8581 
8604  virtual int enableCustomAudioLocalPlayback(track_id_t trackId, bool enabled) = 0;
8605 
8628  virtual int setRecordingAudioFrameParameters(int sampleRate, int channel,
8629  RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
8630  int samplesPerCall) = 0;
8631 
8654  virtual int setPlaybackAudioFrameParameters(int sampleRate, int channel,
8655  RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
8656  int samplesPerCall) = 0;
8657 
8679  virtual int setMixedAudioFrameParameters(int sampleRate, int channel, int samplesPerCall) = 0;
8680 
8710  virtual int setEarMonitoringAudioFrameParameters(int sampleRate, int channel,
8711  RAW_AUDIO_FRAME_OP_MODE_TYPE mode,
8712  int samplesPerCall) = 0;
8713 
8732  virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel) = 0;
8733 
8755  virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel, int samplesPerCall) = 0;
8756 
8775  virtual int enableAudioSpectrumMonitor(int intervalInMS = 100) = 0;
8789  virtual int disableAudioSpectrumMonitor() = 0;
8790 
8825 
8843  virtual int adjustRecordingSignalVolume(int volume) = 0;
8844 
8864  virtual int muteRecordingSignal(bool mute) = 0;
8865 
8884  virtual int adjustPlaybackSignalVolume(int volume) = 0;
8885 
8905  virtual int adjustUserPlaybackSignalVolume(uid_t uid, int volume) = 0;
8906 
8928  virtual int setRemoteSubscribeFallbackOption(STREAM_FALLBACK_OPTIONS option) = 0;
8929 
8943  virtual int setHighPriorityUserList(uid_t* uidList, int uidNum, STREAM_FALLBACK_OPTIONS option) = 0;
8944 
8965  virtual int enableExtension(const char* provider, const char* extension, const ExtensionInfo& extensionInfo, bool enable = true) = 0;
8966 
8980  virtual int setExtensionProperty(const char* provider, const char* extension, const ExtensionInfo& extensionInfo, const char* key, const char* value) = 0;
8981 
8996  virtual int getExtensionProperty(const char* provider, const char* extension, const ExtensionInfo& extensionInfo, const char* key, char* value, int buf_len) = 0;
8997 
9030  virtual int enableLoopbackRecording(bool enabled, const char* deviceName = NULL) __deprecated = 0;
9031 
9032 
9047  virtual int adjustLoopbackSignalVolume(int volume) = 0;
9048 
9055  virtual int getLoopbackRecordingVolume() = 0;
9056 
9077  virtual int enableInEarMonitoring(bool enabled, int includeAudioFilters) = 0;
9078 
9096  virtual int setInEarMonitoringVolume(int volume) = 0;
9097 
9098 #if defined(_WIN32) || defined(__linux__) || defined(__ANDROID__)
9099 
9122  virtual int loadExtensionProvider(const char* path, bool unload_after_use = false) = 0;
9123 #endif
9124 
9144  virtual int setExtensionProviderProperty(const char* provider, const char* key, const char* value) = 0;
9145 
9177  virtual int registerExtension(const char* provider, const char* extension, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9178 
9204  virtual int enableExtension(const char* provider, const char* extension, bool enable=true, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9205 
9229  const char* provider, const char* extension,
9230  const char* key, const char* value, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9231 
9251  const char* provider, const char* extension,
9252  const char* key, char* value, int buf_len, agora::media::MEDIA_SOURCE_TYPE type = agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
9253 
9277 
9296  virtual video_track_id_t createCustomVideoTrack() = 0;
9297 
9305  virtual video_track_id_t createCustomEncodedVideoTrack(const SenderOptions& sender_option) = 0;
9306 
9316  virtual int destroyCustomVideoTrack(video_track_id_t video_track_id) = 0;
9317 
9326  virtual int destroyCustomEncodedVideoTrack(video_track_id_t video_track_id) = 0;
9327 
9328 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
9329 
9349  virtual int switchCamera() = 0;
9350 
9364  virtual bool isCameraZoomSupported() = 0;
9365 
9378  virtual bool isCameraFaceDetectSupported() = 0;
9379 
9397  virtual bool isCameraTorchSupported() = 0;
9398 
9411  virtual bool isCameraFocusSupported() = 0;
9412 
9425  virtual bool isCameraAutoFocusFaceModeSupported() = 0;
9426 
9453  virtual int setCameraZoomFactor(float factor) = 0;
9454 
9477  virtual int enableFaceDetection(bool enabled) = 0;
9478 
9490  virtual float getCameraMaxZoomFactor() = 0;
9491 
9509  virtual int setCameraFocusPositionInPreview(float positionX, float positionY) = 0;
9510 
9528  virtual int setCameraTorchOn(bool isOn) = 0;
9529 
9549  virtual int setCameraAutoFocusFaceModeEnabled(bool enabled) = 0;
9550 
9565  virtual bool isCameraExposurePositionSupported() = 0;
9566 
9586  virtual int setCameraExposurePosition(float positionXinView, float positionYinView) = 0;
9587 
9606  virtual bool isCameraExposureSupported() = 0;
9607 
9640  virtual int setCameraExposureFactor(float factor) = 0;
9641 
9642 #if defined(__APPLE__)
9643 
9655  virtual bool isCameraAutoExposureFaceModeSupported() = 0;
9656 
9657 
9675  virtual int setCameraAutoExposureFaceModeEnabled(bool enabled) = 0;
9676 
9703  virtual int setCameraStabilizationMode(CAMERA_STABILIZATION_MODE mode) = 0;
9704 #endif
9705 
9736  virtual int setDefaultAudioRouteToSpeakerphone(bool defaultToSpeaker) = 0;
9737 
9766  virtual int setEnableSpeakerphone(bool speakerOn) = 0;
9767 
9781  virtual bool isSpeakerphoneEnabled() = 0;
9782 
9811  virtual int setRouteInCommunicationMode(int route) = 0;
9812 #endif // __ANDROID__ || (__APPLE__ && TARGET_OS_IOS) || __OHOS__
9813 
9814 #if defined(__APPLE__)
9815 
9831  virtual bool isCameraCenterStageSupported() = 0;
9832 
9871  virtual int enableCameraCenterStage(bool enabled) = 0;
9872 #endif
9873 
9874 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE)|| (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
9875 
9907  virtual IScreenCaptureSourceList* getScreenCaptureSources(const SIZE& thumbSize, const SIZE& iconSize, const bool includeScreen) = 0;
9908 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
9909 #if (defined(__APPLE__) && TARGET_OS_IOS)
9910 
9933  virtual int setAudioSessionOperationRestriction(AUDIO_SESSION_OPERATION_RESTRICTION restriction) = 0;
9934 #endif // __APPLE__ && TARGET_OS_IOS
9935 
9936 #if defined(_WIN32) || (defined(__APPLE__) && !TARGET_OS_IPHONE && TARGET_OS_MAC) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
9937 
9977  virtual int startScreenCaptureByDisplayId(int64_t displayId, const Rectangle& regionRect,
9978  const ScreenCaptureParameters& captureParams) = 0;
9979 
9980 #endif // __APPLE__ && TARGET_OS_MAC && !TARGET_OS_IPHONE
9981 
9982 #if defined(_WIN32)
9983 
10021  virtual int startScreenCaptureByScreenRect(const Rectangle& screenRect,
10022  const Rectangle& regionRect,
10023  const ScreenCaptureParameters& captureParams) __deprecated = 0;
10024 #endif
10025 
10026 #if defined(__ANDROID__)
10027 
10047  virtual int getAudioDeviceInfo(DeviceInfo& deviceInfo) = 0;
10048 #endif // __ANDROID__
10049 
10067  virtual int setRemoteRenderRotation(uid_t uid, VIDEO_ORIENTATION rotation) = 0;
10068 
10069 #if defined(_WIN32) || (defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE) || (defined(__linux__) && !defined(__ANDROID__) && !defined(__OHOS__))
10070 
10143  virtual int startScreenCaptureByWindowId(int64_t windowId, const Rectangle& regionRect,
10144  const ScreenCaptureParameters& captureParams) = 0;
10145 
10166  virtual int setScreenCaptureContentHint(VIDEO_CONTENT_HINT contentHint) = 0;
10167 
10186  virtual int updateScreenCaptureRegion(const Rectangle& regionRect) = 0;
10187 
10207  virtual int updateScreenCaptureParameters(const ScreenCaptureParameters& captureParams) = 0;
10208 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC)
10209 
10210 #if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS) || defined(__OHOS__)
10211 
10266  virtual int startScreenCapture(const ScreenCaptureParameters2& captureParams) = 0;
10267 
10292  virtual int updateScreenCapture(const ScreenCaptureParameters2& captureParams) = 0;
10293 
10314  virtual int queryScreenCaptureCapability() = 0;
10315 
10343  virtual int queryCameraFocalLengthCapability(agora::rtc::FocalLengthInfo* focalLengthInfos, int& size) = 0;
10344 
10345 #if defined(__ANDROID__)
10346 
10375  virtual int setExternalMediaProjection(void* mediaProjection) = 0;
10376 #endif
10377 #endif
10378 
10379 #if defined(_WIN32) || defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && !defined(__ANDROID__) && !defined (__OHOS__))
10380 
10396  virtual int setScreenCaptureScenario(SCREEN_SCENARIO_TYPE screenScenario) = 0;
10397 
10412  virtual int stopScreenCapture() = 0;
10413 #endif // _WIN32 || (__APPLE__ && !TARGET_OS_IPHONE && TARGET_OS_MAC) || __ANDROID__
10414 
10430  virtual int getCallId(agora::util::AString& callId) = 0;
10431 
10448  virtual int rate(const char* callId, int rating, const char* description) = 0; // 0~10
10449 
10468  virtual int complain(const char* callId, const char* description) = 0;
10469 
10500  virtual int startRtmpStreamWithoutTranscoding(const char* url) = 0;
10501 
10535  virtual int startRtmpStreamWithTranscoding(const char* url, const LiveTranscoding& transcoding) = 0;
10536 
10553  virtual int updateRtmpTranscoding(const LiveTranscoding& transcoding) = 0;
10554 
10630 
10650  virtual int stopRtmpStream(const char* url) = 0;
10651 
10663  virtual int stopLocalVideoTranscoder() = 0;
10664 
10697  virtual int startLocalAudioMixer(const LocalAudioMixerConfiguration& config) = 0;
10698 
10719 
10734  virtual int stopLocalAudioMixer() = 0;
10735 
10761  virtual int startCameraCapture(VIDEO_SOURCE_TYPE sourceType, const CameraCapturerConfiguration& config) = 0;
10762 
10783  virtual int stopCameraCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
10802  virtual int setCameraDeviceOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation) = 0;
10814  virtual int setScreenCaptureOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation) = 0;
10815 
10858  virtual int startScreenCapture(VIDEO_SOURCE_TYPE sourceType, const ScreenCaptureConfiguration& config) = 0;
10859 
10878  virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType) = 0;
10879 
10889  virtual CONNECTION_STATE_TYPE getConnectionState() = 0;
10890 
10891  // The following APIs are not implemented yet.
10892  virtual bool registerEventHandler(IRtcEngineEventHandler* eventHandler) = 0;
10893  virtual bool unregisterEventHandler(IRtcEngineEventHandler* eventHandler) = 0;
10894  virtual int setRemoteUserPriority(uid_t uid, PRIORITY_TYPE userPriority) = 0;
10895 
10919  virtual int registerPacketObserver(IPacketObserver* observer) = 0;
10920 
10921 
10950  virtual int enableEncryption(bool enabled, const EncryptionConfig& config) = 0;
10951 
10987  virtual int createDataStream(int* streamId, bool reliable, bool ordered) = 0;
10988 
11012  virtual int createDataStream(int* streamId, const DataStreamConfig& config) = 0;
11013 
11047  virtual int sendStreamMessage(int streamId, const char* data, size_t length) = 0;
11048 
11062  virtual int sendRdtMessage(uid_t uid, RdtStreamType type, const char *data, size_t length) = 0;
11063 
11076  virtual int sendMediaControlMessage(uid_t uid, const char* data, size_t length) = 0;
11077 
11104  virtual int addVideoWatermark(const RtcImage& watermark) __deprecated = 0;
11105 
11152  virtual int addVideoWatermark(const char* watermarkUrl, const WatermarkOptions& options) = 0;
11153 
11169  virtual int addVideoWatermark(const WatermarkConfig& configs) = 0;
11170 
11187  virtual int removeVideoWatermark(const char* id) = 0;
11188 
11196  virtual int clearVideoWatermarks() = 0;
11197 
11198  // The following APIs are either deprecated and going to deleted.
11199 
11208  virtual int pauseAudio() __deprecated = 0;
11217  virtual int resumeAudio() __deprecated = 0;
11218 
11239  virtual int enableWebSdkInteroperability(bool enabled) __deprecated = 0;
11240 
11252  virtual int sendCustomReportMessage(const char* id, const char* category, const char* event, const char* label, int value) = 0;
11253 
11278  virtual int registerMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type) = 0;
11279 
11291  virtual int unregisterMediaMetadataObserver(IMetadataObserver* observer, IMetadataObserver::METADATA_TYPE type) = 0;
11292 
11301  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;
11302 
11306  virtual int stopAudioFrameDump(const char* channel_id, uid_t uid, const char* location) = 0;
11307 
11345  virtual int setAINSMode(bool enabled, AUDIO_AINS_MODE mode) = 0;
11346 
11400  virtual int registerLocalUserAccount(const char* appId, const char* userAccount) = 0;
11401 
11485  virtual int joinChannelWithUserAccount(const char* token, const char* channelId, const char* userAccount) = 0;
11486 
11574  virtual int joinChannelWithUserAccount(const char* token, const char* channelId, const char* userAccount, const ChannelMediaOptions& options) = 0;
11575 
11663  virtual int joinChannelWithUserAccountEx(const char* token, const char* channelId,
11664  const char* userAccount, const ChannelMediaOptions& options,
11665  IRtcEngineEventHandler* eventHandler) = 0;
11666 
11688  virtual int getUserInfoByUserAccount(const char* userAccount, rtc::UserInfo* userInfo) = 0;
11689 
11711  virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo* userInfo) = 0;
11712 
11749 
11770  virtual int stopChannelMediaRelay() = 0;
11771 
11787  virtual int pauseAllChannelMediaRelay() = 0;
11788 
11803  virtual int resumeAllChannelMediaRelay() = 0;
11804 
11822  virtual int setDirectCdnStreamingAudioConfiguration(AUDIO_PROFILE_TYPE profile) = 0;
11823 
11848 
11882  const char* publishUrl, const DirectCdnStreamingMediaOptions& options) = 0;
11883 
11893  virtual int stopDirectCdnStreaming() = 0;
11894 
11909 
11943  virtual int startRhythmPlayer(const char* sound1, const char* sound2, const AgoraRhythmPlayerConfig& config) = 0;
11944 
11957  virtual int stopRhythmPlayer() = 0;
11958 
11983  virtual int configRhythmPlayer(const AgoraRhythmPlayerConfig& config) = 0;
11984 
12016  virtual int takeSnapshot(uid_t uid, const char* filePath) = 0;
12017 
12042  virtual int takeSnapshot(uid_t uid, const media::SnapshotConfig& config) = 0;
12043 
12072  virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config) = 0;
12092  virtual int adjustCustomAudioPublishVolume(track_id_t trackId, int volume) = 0;
12093 
12113  virtual int adjustCustomAudioPlayoutVolume(track_id_t trackId, int volume) = 0;
12114 
12148  virtual int setCloudProxy(CLOUD_PROXY_TYPE proxyType) = 0;
12167  virtual int setLocalAccessPoint(const LocalAccessPointConfiguration& config) = 0;
12168 
12186  virtual int setAdvancedAudioOptions(AdvancedAudioOptions& options, int sourceType = 0) = 0;
12187 
12208  virtual int setAVSyncSource(const char* channelId, uid_t uid) = 0;
12209 
12230  virtual int enableVideoImageSource(bool enable, const ImageTrackOptions& options) = 0;
12231 
12249  virtual int64_t getCurrentMonotonicTimeInMs() = 0;
12250 
12271  virtual int getNetworkType() = 0;
12272 
12286  virtual int setParameters(const char* parameters) = 0;
12287 
12317  virtual int startMediaRenderingTracing() = 0;
12318 
12342  virtual int enableInstantMediaRendering() = 0;
12343 
12356  virtual uint64_t getNtpWallTimeInMs() = 0;
12357 
12378  virtual bool isFeatureAvailableOnDevice(FeatureType type) = 0;
12379 
12390  virtual int sendAudioMetadata(const char* metadata, size_t length) = 0;
12391 
12402  virtual int queryHDRCapability(VIDEO_MODULE_TYPE videoModule, HDR_CAPABILITY& capability) = 0;
12403 };
12404 
12405 // The following types are either deprecated or not implmented yet.
12406 enum QUALITY_REPORT_FORMAT_TYPE {
12409  QUALITY_REPORT_JSON = 0,
12412  QUALITY_REPORT_HTML = 1,
12413 };
12414 
12418 enum MEDIA_DEVICE_STATE_TYPE {
12422  MEDIA_DEVICE_STATE_IDLE = 0,
12426  MEDIA_DEVICE_STATE_ACTIVE = 1,
12430  MEDIA_DEVICE_STATE_DISABLED = 2,
12431 
12435  MEDIA_DEVICE_STATE_PLUGGED_IN = 3,
12436 
12440  MEDIA_DEVICE_STATE_NOT_PRESENT = 4,
12444  MEDIA_DEVICE_STATE_UNPLUGGED = 8
12445 };
12446 
12447 enum VIDEO_PROFILE_TYPE { // res fps
12449  VIDEO_PROFILE_LANDSCAPE_120P = 0, // 160x120 15
12451  VIDEO_PROFILE_LANDSCAPE_120P_3 = 2, // 120x120 15
12453  VIDEO_PROFILE_LANDSCAPE_180P = 10, // 320x180 15
12455  VIDEO_PROFILE_LANDSCAPE_180P_3 = 12, // 180x180 15
12457  VIDEO_PROFILE_LANDSCAPE_180P_4 = 13, // 240x180 15
12459  VIDEO_PROFILE_LANDSCAPE_240P = 20, // 320x240 15
12461  VIDEO_PROFILE_LANDSCAPE_240P_3 = 22, // 240x240 15
12463  VIDEO_PROFILE_LANDSCAPE_240P_4 = 23, // 424x240 15
12465  VIDEO_PROFILE_LANDSCAPE_360P = 30, // 640x360 15
12467  VIDEO_PROFILE_LANDSCAPE_360P_3 = 32, // 360x360 15
12469  VIDEO_PROFILE_LANDSCAPE_360P_4 = 33, // 640x360 30
12471  VIDEO_PROFILE_LANDSCAPE_360P_6 = 35, // 360x360 30
12473  VIDEO_PROFILE_LANDSCAPE_360P_7 = 36, // 480x360 15
12475  VIDEO_PROFILE_LANDSCAPE_360P_8 = 37, // 480x360 30
12477  VIDEO_PROFILE_LANDSCAPE_360P_9 = 38, // 640x360 15
12479  VIDEO_PROFILE_LANDSCAPE_360P_10 = 39, // 640x360 24
12481  VIDEO_PROFILE_LANDSCAPE_360P_11 = 100, // 640x360 24
12483  VIDEO_PROFILE_LANDSCAPE_480P = 40, // 640x480 15
12485  VIDEO_PROFILE_LANDSCAPE_480P_3 = 42, // 480x480 15
12487  VIDEO_PROFILE_LANDSCAPE_480P_4 = 43, // 640x480 30
12489  VIDEO_PROFILE_LANDSCAPE_480P_6 = 45, // 480x480 30
12491  VIDEO_PROFILE_LANDSCAPE_480P_8 = 47, // 848x480 15
12493  VIDEO_PROFILE_LANDSCAPE_480P_9 = 48, // 848x480 30
12495  VIDEO_PROFILE_LANDSCAPE_480P_10 = 49, // 640x480 10
12497  VIDEO_PROFILE_LANDSCAPE_720P = 50, // 1280x720 15
12499  VIDEO_PROFILE_LANDSCAPE_720P_3 = 52, // 1280x720 30
12501  VIDEO_PROFILE_LANDSCAPE_720P_5 = 54, // 960x720 15
12503  VIDEO_PROFILE_LANDSCAPE_720P_6 = 55, // 960x720 30
12505  VIDEO_PROFILE_LANDSCAPE_1080P = 60, // 1920x1080 15
12507  VIDEO_PROFILE_LANDSCAPE_1080P_3 = 62, // 1920x1080 30
12509  VIDEO_PROFILE_LANDSCAPE_1080P_5 = 64, // 1920x1080 60
12511  VIDEO_PROFILE_LANDSCAPE_1440P = 66, // 2560x1440 30
12513  VIDEO_PROFILE_LANDSCAPE_1440P_2 = 67, // 2560x1440 60
12515  VIDEO_PROFILE_LANDSCAPE_4K = 70, // 3840x2160 30
12517  VIDEO_PROFILE_LANDSCAPE_4K_3 = 72, // 3840x2160 60
12519  VIDEO_PROFILE_PORTRAIT_120P = 1000, // 120x160 15
12521  VIDEO_PROFILE_PORTRAIT_120P_3 = 1002, // 120x120 15
12523  VIDEO_PROFILE_PORTRAIT_180P = 1010, // 180x320 15
12525  VIDEO_PROFILE_PORTRAIT_180P_3 = 1012, // 180x180 15
12527  VIDEO_PROFILE_PORTRAIT_180P_4 = 1013, // 180x240 15
12529  VIDEO_PROFILE_PORTRAIT_240P = 1020, // 240x320 15
12531  VIDEO_PROFILE_PORTRAIT_240P_3 = 1022, // 240x240 15
12533  VIDEO_PROFILE_PORTRAIT_240P_4 = 1023, // 240x424 15
12535  VIDEO_PROFILE_PORTRAIT_360P = 1030, // 360x640 15
12537  VIDEO_PROFILE_PORTRAIT_360P_3 = 1032, // 360x360 15
12539  VIDEO_PROFILE_PORTRAIT_360P_4 = 1033, // 360x640 30
12541  VIDEO_PROFILE_PORTRAIT_360P_6 = 1035, // 360x360 30
12543  VIDEO_PROFILE_PORTRAIT_360P_7 = 1036, // 360x480 15
12545  VIDEO_PROFILE_PORTRAIT_360P_8 = 1037, // 360x480 30
12547  VIDEO_PROFILE_PORTRAIT_360P_9 = 1038, // 360x640 15
12549  VIDEO_PROFILE_PORTRAIT_360P_10 = 1039, // 360x640 24
12551  VIDEO_PROFILE_PORTRAIT_360P_11 = 1100, // 360x640 24
12553  VIDEO_PROFILE_PORTRAIT_480P = 1040, // 480x640 15
12555  VIDEO_PROFILE_PORTRAIT_480P_3 = 1042, // 480x480 15
12557  VIDEO_PROFILE_PORTRAIT_480P_4 = 1043, // 480x640 30
12559  VIDEO_PROFILE_PORTRAIT_480P_6 = 1045, // 480x480 30
12561  VIDEO_PROFILE_PORTRAIT_480P_8 = 1047, // 480x848 15
12563  VIDEO_PROFILE_PORTRAIT_480P_9 = 1048, // 480x848 30
12565  VIDEO_PROFILE_PORTRAIT_480P_10 = 1049, // 480x640 10
12567  VIDEO_PROFILE_PORTRAIT_720P = 1050, // 720x1280 15
12569  VIDEO_PROFILE_PORTRAIT_720P_3 = 1052, // 720x1280 30
12571  VIDEO_PROFILE_PORTRAIT_720P_5 = 1054, // 720x960 15
12573  VIDEO_PROFILE_PORTRAIT_720P_6 = 1055, // 720x960 30
12575  VIDEO_PROFILE_PORTRAIT_1080P = 1060, // 1080x1920 15
12577  VIDEO_PROFILE_PORTRAIT_1080P_3 = 1062, // 1080x1920 30
12579  VIDEO_PROFILE_PORTRAIT_1080P_5 = 1064, // 1080x1920 60
12581  VIDEO_PROFILE_PORTRAIT_1440P = 1066, // 1440x2560 30
12583  VIDEO_PROFILE_PORTRAIT_1440P_2 = 1067, // 1440x2560 60
12585  VIDEO_PROFILE_PORTRAIT_4K = 1070, // 2160x3840 30
12587  VIDEO_PROFILE_PORTRAIT_4K_3 = 1072, // 2160x3840 60
12589  VIDEO_PROFILE_DEFAULT = VIDEO_PROFILE_LANDSCAPE_360P,
12590 };
12591 
12592 class AAudioDeviceManager : public agora::util::AutoPtr<IAudioDeviceManager> {
12593  public:
12594  AAudioDeviceManager(IRtcEngine* engine) {
12595  queryInterface(engine, AGORA_IID_AUDIO_DEVICE_MANAGER);
12596  }
12597 };
12598 
12599 class AVideoDeviceManager : public agora::util::AutoPtr<IVideoDeviceManager> {
12600  public:
12601  AVideoDeviceManager(IRtcEngine* engine) {
12602  queryInterface(engine, AGORA_IID_VIDEO_DEVICE_MANAGER);
12603  }
12604 };
12605 
12606 } // namespace rtc
12607 } // namespace agora
12608 
12614 #define getAgoraRtcEngineVersion getAgoraSdkVersion
12615 
12617 
12620 
12632 
12634 
12635 
12642 #define getAgoraRtcEngineErrorDescription getAgoraSdkErrorDescription
12643 #define setAgoraRtcEngineExternalSymbolLoader setAgoraSdkExternalSymbolLoader
agora::rtc::IRtcEngine::setDirectCdnStreamingAudioConfiguration
virtual int setDirectCdnStreamingAudioConfiguration(AUDIO_PROFILE_TYPE profile)=0
Sets the audio profile of the audio streams directly pushed to the CDN by the host.
agora::rtc::IRtcEngine::getErrorDescription
virtual const char * getErrorDescription(int code)=0
Gets the warning or error description.
agora::rtc::IRtcEngine::enableAudioSpectrumMonitor
virtual int enableAudioSpectrumMonitor(int intervalInMS=100)=0
Turns on audio spectrum monitoring.
agora::rtc::IRtcEngine::setSubscribeVideoAllowlist
virtual int setSubscribeVideoAllowlist(uid_t *uidList, int uidNumber)=0
Sets the allowlist of subscriptions for video streams.
agora::rtc::IRtcEngine::adjustRecordingSignalVolume
virtual int adjustRecordingSignalVolume(int volume)=0
Adjusts the capturing signal volume.
agora::rtc::IRtcEngine::enableWebSdkInteroperability
virtual int enableWebSdkInteroperability(bool enabled) __deprecated=0
Enables interoperability with the Agora Web SDK (applicable only in the live streaming scenarios.
agora::rtc::IRtcEngine::enableSpatialAudio
virtual int enableSpatialAudio(bool enabled)=0
Enables or disables the spatial audio effect.
agora::rtc::ChannelMediaOptions::publishMediaPlayerAudioTrack
Optional< bool > publishMediaPlayerAudioTrack
Definition: IAgoraRtcEngine.h:1391
agora::rtc::PublisherConfiguration::extraInfo
const char * extraInfo
Definition: IAgoraRtcEngine.h:863
agora::rtc::IRtcEngine::setAVSyncSource
virtual int setAVSyncSource(const char *channelId, uid_t uid)=0
Sets audio-video synchronization for the sender.
agora::rtc::IRtcEngine::setRemoteRenderRotation
virtual int setRemoteRenderRotation(uid_t uid, VIDEO_ORIENTATION rotation)=0
agora::VideoLayout
Layout information of a specific sub-video stream within the mixed stream.
Definition: AgoraBase.h:8384
agora::rtc::RtcEngineContext::appId
const char * appId
Definition: IAgoraRtcEngine.h:4147
agora::rtc::IRtcEngine::setSubscribeAudioBlocklist
virtual int setSubscribeAudioBlocklist(uid_t *uidList, int uidNumber)=0
Sets the blocklist of subscriptions for audio streams.
agora::rtc::IRtcEngine::sendRdtMessage
virtual int sendRdtMessage(uid_t uid, RdtStreamType type, const char *data, size_t length)=0
Send Reliable message to remote uid in channel.
agora::rtc::IRtcEngineEventHandler::onUserAccountUpdated
virtual void onUserAccountUpdated(uid_t uid, const char *userAccount)
Definition: IAgoraRtcEngine.h:3469
agora::rtc::IRtcEngine::enableInEarMonitoring
virtual int enableInEarMonitoring(bool enabled, int includeAudioFilters)=0
Enables in-ear monitoring.
agora::rtc::IRtcEngineEventHandler::onRtmpStreamingEvent
virtual void onRtmpStreamingEvent(const char *url, RTMP_STREAMING_EVENT eventCode)
Reports events during the Media Push.
Definition: IAgoraRtcEngine.h:3238
agora::rtc::IRtcEngineEventHandler::onExtensionErrorWithContext
virtual void onExtensionErrorWithContext(const ExtensionContext &context, int error, const char *message)
Occurs when the extension runs incorrectly.
Definition: IAgoraRtcEngine.h:3693
agora::rtc::LocalVideoStats::regulatedCaptureFrameHeight
int regulatedCaptureFrameHeight
Definition: IAgoraRtcEngine.h:355
agora::rtc::IRtcEngine::setEffectPosition
virtual int setEffectPosition(int soundId, int pos)=0
Sets the playback position of an audio effect file.
agora::rtc::UserInfo
The information of the user.
Definition: AgoraBase.h:7817
agora::rtc::RemoteVideoStats::publishDuration
int publishDuration
Definition: IAgoraRtcEngine.h:655
agora::rtc::FilterEffectOptions
Filter effect options.
Definition: AgoraBase.h:5855
agora::rtc::IRtcEngine::stopDirectCdnStreaming
virtual int stopDirectCdnStreaming()=0
Stops pushing media streams to the CDN directly.
agora::rtc::LastmileProbeResult
Results of the uplink and downlink last-mile network tests.
Definition: AgoraBase.h:5130
agora::rtc::AudioEncodedFrameObserverConfig
Observer settings for the encoded audio.
Definition: AgoraBase.h:7056
agora::rtc::ScreenCaptureParameters
Screen sharing configurations.
Definition: AgoraBase.h:6720
agora::rtc::IRtcEngine::muteAllRemoteVideoStreams
virtual int muteAllRemoteVideoStreams(bool mute)=0
Stops or resumes subscribing to the video streams of all remote users.
agora::rtc::IRtcEngine::setRemoteVideoSubscriptionOptions
virtual int setRemoteVideoSubscriptionOptions(uid_t uid, const VideoSubscriptionOptions &options)=0
Options for subscribing to remote video streams.
agora::rtc::AudioVolumeInfo
The volume information of users.
Definition: AgoraBase.h:4084
agora::rtc::RemoteVideoStats::e2eDelay
int e2eDelay
Definition: IAgoraRtcEngine.h:593
agora::rtc::InjectStreamConfig::audioChannels
int audioChannels
Definition: IAgoraRtcEngine.h:780
agora::rtc::IVideoEffectObject::SAVE
@ SAVE
Definition: IAgoraRtcEngine.h:3955
agora::rtc::LocalVideoStats::regulatedCaptureFrameWidth
int regulatedCaptureFrameWidth
Definition: IAgoraRtcEngine.h:349
agora::rtc::IRtcEngine::pauseEffect
virtual int pauseEffect(int soundId)=0
Pauses a specified audio effect file.
agora::rtc::BeautyOptions
Image enhancement options.
Definition: AgoraBase.h:5520
agora::rtc::ChannelMediaOptions::publishSecondaryCameraTrack
Optional< bool > publishSecondaryCameraTrack
Definition: IAgoraRtcEngine.h:1271
agora::rtc::SenderOptions
Definition: AgoraBase.h:1443
agora::rtc::IRtcEngine::muteLocalVideoStream
virtual int muteLocalVideoStream(bool mute)=0
Stops or resumes publishing the local video stream.
agora::rtc::RtcEngineContext::eventHandler
IRtcEngineEventHandler * eventHandler
Definition: IAgoraRtcEngine.h:4140
agora::rtc::ChannelMediaOptions::enableMultipath
Optional< bool > enableMultipath
Definition: IAgoraRtcEngine.h:1541
agora::rtc::IRtcEngine::stopPreview
virtual int stopPreview(VIDEO_SOURCE_TYPE sourceType)=0
Stops the local video preview.
agora::rtc::IRtcEngine::startScreenCapture
virtual int startScreenCapture(VIDEO_SOURCE_TYPE sourceType, const ScreenCaptureConfiguration &config)=0
Starts screen capture from the specified video source.
agora::rtc::IRtcEngineEventHandler::onIntraRequestReceived
virtual void onIntraRequestReceived()
Definition: IAgoraRtcEngine.h:2167
agora::rtc::VideoCompositingLayout
Definition: IAgoraRtcEngine.h:670
agora::rtc::VideoCompositingLayout::canvasHeight
int canvasHeight
Definition: IAgoraRtcEngine.h:719
agora::rtc::IRtcEngine::setVoiceConversionPreset
virtual int setVoiceConversionPreset(VOICE_CONVERSION_PRESET preset)=0
Sets a preset voice beautifier effect.
agora::rtc::DirectCdnStreamingStats::videoHeight
int videoHeight
Definition: IAgoraRtcEngine.h:4438
agora::rtc::LastmileProbeConfig
Configurations of the last-mile network test.
Definition: AgoraBase.h:5061
agora::rtc::IRtcEngine::enableLocalVideo
virtual int enableLocalVideo(bool enabled)=0
Enables/Disables the local video capture.
agora::rtc::IRtcEngineEventHandler::onLeaveChannel
virtual void onLeaveChannel(const RtcStats &stats)
Occurs when a user leaves a channel.
Definition: IAgoraRtcEngine.h:2028
agora::rtc::IRtcEngine::joinChannel
virtual int joinChannel(const char *token, const char *channelId, uid_t uid, const ChannelMediaOptions &options)=0
Joins a channel with media options.
agora::rtc::IRtcEngineEventHandler::onRhythmPlayerStateChanged
virtual void onRhythmPlayerStateChanged(RHYTHM_PLAYER_STATE_TYPE state, RHYTHM_PLAYER_REASON reason)
Occurs when the state of virtual metronome changes.
Definition: IAgoraRtcEngine.h:2773
agora::rtc::IDirectCdnStreamingEventHandler::onDirectCdnStreamingStateChanged
virtual void onDirectCdnStreamingStateChanged(DIRECT_CDN_STREAMING_STATE state, DIRECT_CDN_STREAMING_REASON reason, const char *message)
Occurs when the CDN streaming state changes.
Definition: IAgoraRtcEngine.h:4480
agora::rtc::IRtcEngine::getAudioTrackCount
virtual int getAudioTrackCount()=0
Gets the index of audio tracks of the current music file.
agora::rtc::IRtcEngineEventHandler::onStreamMessage
virtual void onStreamMessage(uid_t uid, int streamId, const char *data, size_t length, uint64_t sentTs)
Occurs when the local user receives the data stream from the remote user.
Definition: IAgoraRtcEngine.h:2836
agora::rtc::IRtcEngineEventHandler::onFirstRemoteVideoDecoded
virtual void onFirstRemoteVideoDecoded(uid_t uid, int width, int height, int elapsed) __deprecated
Occurs when the first remote video frame is received and decoded.
Definition: IAgoraRtcEngine.h:2275
agora::rtc::LocalVideoStats::uid
uid_t uid
Definition: IAgoraRtcEngine.h:315
agora::rtc::IRtcEngine::stopChannelMediaRelay
virtual int stopChannelMediaRelay()=0
Stops the media stream relay. Once the relay stops, the host quits all the target channels.
agora::rtc::IRtcEngineEventHandler::onAudioEffectFinished
virtual void onAudioEffectFinished(int soundId)
Occurs when the playback of the local music file finishes.
Definition: IAgoraRtcEngine.h:2102
agora::rtc::IVideoEffectObject::getVideoEffectFloatParam
virtual float getVideoEffectFloatParam(const char *option, const char *key)=0
Retrieves float type parameters in video effects.
agora::rtc::RtcEngineContext::threadPriority
Optional< THREAD_PRIORITY_TYPE > threadPriority
Definition: IAgoraRtcEngine.h:4200
agora::rtc::IRtcEngine::registerAudioEncodedFrameObserver
virtual int registerAudioEncodedFrameObserver(const AudioEncodedFrameObserverConfig &config, IAudioEncodedFrameObserver *observer)=0
Registers an encoded audio observer.
agora::rtc::RemoteAudioStats::frozenTimeByCustom
uint32_t frozenTimeByCustom
Definition: IAgoraRtcEngine.h:517
agora::rtc::IRtcEngine::queryHDRCapability
virtual int queryHDRCapability(VIDEO_MODULE_TYPE videoModule, HDR_CAPABILITY &capability)=0
Queries the HDR capability of the video module.
agora::rtc::IRtcEngine::setFaceShapeBeautyOptions
virtual int setFaceShapeBeautyOptions(bool enabled, const FaceShapeBeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the face shape options and specifies the media source.
agora::rtc::ChannelMediaOptions::enableBuiltInMediaEncryption
Optional< bool > enableBuiltInMediaEncryption
Definition: IAgoraRtcEngine.h:1491
agora::rtc::IRtcEngine::resumeAllEffects
virtual int resumeAllEffects()=0
Resumes playing all audio effect files.
agora::rtc::IRtcEngine::joinChannelWithUserAccountEx
virtual int joinChannelWithUserAccountEx(const char *token, const char *channelId, const char *userAccount, const ChannelMediaOptions &options, IRtcEngineEventHandler *eventHandler)=0
Join a channel using a user account and token, and set the media options.
agora::rtc::InjectStreamConfig::width
int width
Definition: IAgoraRtcEngine.h:753
agora::rtc::IRtcEngine::pauseAudioMixing
virtual int pauseAudioMixing()=0
Pauses playing and mixing the music file.
agora::rtc::IRtcEngine::setPlaybackAudioFrameBeforeMixingParameters
virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel)=0
Sets the format of the raw audio playback data before mixing.
agora::rtc::IRtcEngineEventHandler::onRemoteAudioTransportStats
virtual void onRemoteAudioTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated
Reports the transport-layer statistics of each remote audio stream.
Definition: IAgoraRtcEngine.h:3327
agora::rtc::RemoteAudioStats::totalActiveTime
int totalActiveTime
Definition: IAgoraRtcEngine.h:524
agora::agora_refptr
Definition: AgoraRefPtr.h:44
agora::rtc::IRtcEngineEventHandler::onFirstRemoteAudioFrame
virtual void onFirstRemoteAudioFrame(uid_t uid, int elapsed) __deprecated
Occurs when the SDK receives the first audio frame from a specific remote user.
Definition: IAgoraRtcEngine.h:3029
agora::rtc::IVideoDeviceCollection::release
virtual void release()=0
Releases all the resources occupied by the IVideoDeviceCollection object.
agora::rtc::IVideoDeviceManager::enumerateVideoDevices
virtual IVideoDeviceCollection * enumerateVideoDevices()=0
Enumerates the video devices.
agora::rtc::LeaveChannelOptions::stopAudioMixing
bool stopAudioMixing
Definition: IAgoraRtcEngine.h:1809
agora::rtc::IRtcEngine::getVersion
virtual const char * getVersion(int *build)=0
Gets the SDK version.
agora::rtc::RemoteVideoStats::totalActiveTime
int totalActiveTime
Definition: IAgoraRtcEngine.h:651
agora::rtc::IRtcEngine::setAudioMixingPitch
virtual int setAudioMixingPitch(int pitch)=0
Sets the pitch of the local music file.
agora::rtc::ChannelMediaOptions::publishRhythmPlayerTrack
Optional< bool > publishRhythmPlayerTrack
Definition: IAgoraRtcEngine.h:1498
agora::rtc::ChannelMediaOptions::publishCustomVideoTrack
Optional< bool > publishCustomVideoTrack
Definition: IAgoraRtcEngine.h:1379
agora::rtc::IRtcEngineEventHandler::onLocalVideoStateChanged
virtual void onLocalVideoStateChanged(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_STREAM_STATE state, LOCAL_VIDEO_STREAM_REASON reason)
Occurs when the local video stream state changes.
Definition: IAgoraRtcEngine.h:2369
agora::media::IAudioSpectrumObserver
Definition: AgoraMediaBase.h:1881
agora::rtc::DirectCdnStreamingStats::videoWidth
int videoWidth
Definition: IAgoraRtcEngine.h:4433
agora::rtc::IMetadataObserver::Metadata::buffer
unsigned char * buffer
Definition: IAgoraRtcEngine.h:4295
agora::rtc::PublisherConfiguration::publishUrl
const char * publishUrl
Definition: IAgoraRtcEngine.h:856
agora::rtc::IRtcEngine::enableVoiceAITuner
virtual int enableVoiceAITuner(bool enabled, VOICE_AI_TUNER_TYPE type)=0
Enables or disables the voice AI tuner.
agora::rtc::ExtensionInfo
Definition: IAgoraRtcEngine.h:4604
agora::rtc::IRtcEngineEventHandler::onVideoRenderingTracingResult
virtual void onVideoRenderingTracingResult(uid_t uid, MEDIA_TRACE_EVENT currentEvent, VideoRenderingTracingInfo tracingInfo)
Video frame rendering event callback.
Definition: IAgoraRtcEngine.h:3490
agora::rtc::ExtensionInfo::remoteUid
uid_t remoteUid
Definition: IAgoraRtcEngine.h:4615
agora::rtc::PublisherConfiguration::lifecycle
int lifecycle
Definition: IAgoraRtcEngine.h:838
agora::rtc::IRtcEngine::startPreview
virtual int startPreview()=0
Enables the local video preview.
agora::rtc::IMetadataObserver::Metadata::timeStampMs
long long timeStampMs
Definition: IAgoraRtcEngine.h:4299
agora::rtc::IRtcEngineEventHandler::onLocalAudioStats
virtual void onLocalAudioStats(const LocalAudioStats &stats)
Reports the statistics of the local audio stream.
Definition: IAgoraRtcEngine.h:2595
agora::rtc::IRtcEngine::setAINSMode
virtual int setAINSMode(bool enabled, AUDIO_AINS_MODE mode)=0
Sets whether to enable the AI ​​noise suppression function and set the noise suppression mode.
agora::rtc::IRtcEngine::updateLocalAudioMixerConfiguration
virtual int updateLocalAudioMixerConfiguration(const LocalAudioMixerConfiguration &config)=0
Updates the configurations for mixing audio streams locally.
agora::rtc::ChannelMediaOptions::autoSubscribeAudio
Optional< bool > autoSubscribeAudio
Definition: IAgoraRtcEngine.h:1423
agora::rtc::IRtcEngineEventHandler::onCameraExposureAreaChanged
virtual void onCameraExposureAreaChanged(int x, int y, int width, int height)
Occurs when the camera exposure area changes.
Definition: IAgoraRtcEngine.h:2674
agora::rtc::LocalAccessPointConfiguration
Configuration for the Local Access Point.
Definition: AgoraBase.h:8119
agora::rtc::IRtcEngineEventHandler::onClientRoleChangeFailed
virtual void onClientRoleChangeFailed(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole)
Occurs when switching a user role fails.
Definition: IAgoraRtcEngine.h:3183
agora::rtc::IVideoDeviceCollection::getDevice
virtual int getDevice(int index, char deviceNameUTF8[MAX_DEVICE_ID_LENGTH], char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
agora::rtc::ChannelMediaOptions::uplinkMultipathMode
Optional< MultipathMode > uplinkMultipathMode
Definition: IAgoraRtcEngine.h:1548
agora::rtc::DirectCdnStreamingStats::videoBitrate
int videoBitrate
Definition: IAgoraRtcEngine.h:4448
agora::rtc::IRtcEngineEventHandler::onLastmileQuality
virtual void onLastmileQuality(int quality)
Reports the last-mile network quality of the local user.
Definition: IAgoraRtcEngine.h:2198
agora::rtc::IRtcEngine::enableInstantMediaRendering
virtual int enableInstantMediaRendering()=0
Enables audio and video frame instant rendering.
agora::rtc::IRtcEngine::setRemoteRenderMode
virtual int setRemoteRenderMode(uid_t uid, media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode)=0
Updates the display mode of the video view of a remote user.
agora::rtc::ChannelMediaOptions::isAudioFilterable
Optional< bool > isAudioFilterable
Definition: IAgoraRtcEngine.h:1524
agora::rtc::LiveTranscoding
Transcoding configurations for Media Push.
Definition: AgoraBase.h:4666
agora::rtc::ChannelMediaOptions::audienceLatencyLevel
Optional< AUDIENCE_LATENCY_LEVEL_TYPE > audienceLatencyLevel
Definition: IAgoraRtcEngine.h:1453
agora::rtc::IRtcEngineEventHandler::onRemoteVideoTransportStats
virtual void onRemoteVideoTransportStats(uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate) __deprecated
Reports the transport-layer statistics of each remote video stream.
Definition: IAgoraRtcEngine.h:3351
agora::rtc::IVideoEffectObject::VIDEO_EFFECT_ACTION
VIDEO_EFFECT_ACTION
Actions that can be performed on video effect nodes.
Definition: IAgoraRtcEngine.h:3951
agora::rtc::LocalVideoStats::sentFrameRate
int sentFrameRate
Definition: IAgoraRtcEngine.h:325
agora::rtc::Rectangle
The location of the target area relative to the screen or window. If you do not set this parameter,...
Definition: AgoraBase.h:2444
agora::rtc::IRtcEngine::setDirectCdnStreamingVideoConfiguration
virtual int setDirectCdnStreamingVideoConfiguration(const VideoEncoderConfiguration &config)=0
Sets the video profile of the media streams directly pushed to the CDN by the host.
agora::rtc::IRtcEngine::createDataStream
virtual int createDataStream(int *streamId, bool reliable, bool ordered)=0
Creates a data stream.
agora::rtc::IVideoDeviceManager::release
virtual void release()=0
Releases all the resources occupied by the IVideoDeviceManager object.
agora::rtc::ChannelMediaOptions::publishLoopbackAudioTrackIds
Optional< AudioTrackIdList > publishLoopbackAudioTrackIds
Definition: IAgoraRtcEngine.h:1373
agora::rtc::IRtcEngine::setVolumeOfEffect
virtual int setVolumeOfEffect(int soundId, int volume)=0
Gets the volume of a specified audio effect file.
agora::rtc::IRtcEngineEventHandler::onUserInfoUpdated
virtual void onUserInfoUpdated(uid_t uid, const UserInfo &info)
Occurs when the SDK gets the user ID and user account of the remote user.
Definition: IAgoraRtcEngine.h:3458
agora::rtc::IRtcEngineEventHandler::onNetworkTypeChanged
virtual void onNetworkTypeChanged(NETWORK_TYPE type)
Occurs when the local network type changes.
Definition: IAgoraRtcEngine.h:3387
agora::rtc::IRtcEngineEventHandler::onFirstRemoteAudioDecoded
virtual void onFirstRemoteAudioDecoded(uid_t uid, int elapsed) __deprecated
Occurs when the SDK decodes the first remote audio frame for playback.
Definition: IAgoraRtcEngine.h:3013
agora::rtc::InjectStreamConfig::videoFramerate
int videoFramerate
Definition: IAgoraRtcEngine.h:765
agora::rtc::IRtcEngine::setDualStreamMode
virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode, const SimulcastStreamConfig &streamConfig)=0
Sets dual-stream mode configuration on the sender side.
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
Enables the reporting of users' volume indication.
agora::rtc::ChannelMediaOptions::mediaPlayerAudioDelayMs
Optional< int > mediaPlayerAudioDelayMs
Definition: IAgoraRtcEngine.h:1472
agora::rtc::IRtcEngine::updateLocalTranscoderConfiguration
virtual int updateLocalTranscoderConfiguration(const LocalTranscoderConfiguration &config)=0
Updates the local video mixing configuration.
agora::rtc::IMetadataObserver::onReadyToSendMetadata
virtual bool onReadyToSendMetadata(Metadata &metadata, VIDEO_SOURCE_TYPE source_type)=0
Occurs when the SDK is ready to send metadata.
agora::rtc::IRtcEngine::registerPacketObserver
virtual int registerPacketObserver(IPacketObserver *observer)=0
Registers a packet observer.
agora::rtc::RemoteAudioStats::networkTransportDelay
int networkTransportDelay
Definition: IAgoraRtcEngine.h:447
agora::rtc::IRtcEngine::unregisterMediaMetadataObserver
virtual int unregisterMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
Unregisters the specified metadata observer.
agora::rtc::IVideoEffectObject::setVideoEffectStringParam
virtual int setVideoEffectStringParam(const char *option, const char *key, const char *param)=0
Sets the string parameter for the video effect.
agora::rtc::IRtcEngineEventHandler::onLocalVideoTranscoderError
virtual void onLocalVideoTranscoderError(const TranscodingVideoStream &stream, VIDEO_TRANSCODER_ERROR error)
Occurs when there's an error during the local video mixing.
Definition: IAgoraRtcEngine.h:3508
agora::rtc::IRtcEngine::getUserInfoByUid
virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo *userInfo)=0
Gets the user information by passing in the user ID.
agora::rtc::IRtcEngine::pauseAllEffects
virtual int pauseAllEffects()=0
Pauses all audio effects.
agora::rtc::IRtcEngine::disableAudioSpectrumMonitor
virtual int disableAudioSpectrumMonitor()=0
Disables audio spectrum monitoring.
agora::rtc::IVideoEffectObject::VIDEO_EFFECT_NODE_ID::STYLE_MAKEUP
@ STYLE_MAKEUP
agora::rtc::IRtcEngineEventHandler::onFirstLocalAudioFramePublished
virtual void onFirstLocalAudioFramePublished(int elapsed)
Occurs when the first audio frame is published.
Definition: IAgoraRtcEngine.h:2988
agora::util::AutoPtr
Definition: AgoraBase.h:101
agora::rtc::LocalVideoStats::sentBitrate
int sentBitrate
Definition: IAgoraRtcEngine.h:320
agora::rtc::IRtcEngine::getAudioMixingPublishVolume
virtual int getAudioMixingPublishVolume()=0
Retrieves the audio mixing volume for publishing.
agora::rtc::IRtcEngine::addVideoWatermark
virtual int addVideoWatermark(const char *watermarkUrl, const WatermarkOptions &options)=0
Adds a watermark image to the local video.
agora::rtc::IRtcEngineEventHandler::onRejoinChannelSuccess
virtual void onRejoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Occurs when a user rejoins the channel.
Definition: IAgoraRtcEngine.h:1882
agora::rtc::ImageTrackOptions::fps
int fps
Definition: IAgoraRtcEngine.h:1235
agora::rtc::RemoteVideoStats::totalFrozenTime
int totalFrozenTime
Definition: IAgoraRtcEngine.h:634
agora::rtc::IRtcEngineEventHandler::onMultipathStats
virtual void onMultipathStats(const MultipathStats &stats)
Callback for multipath transmission statistics.
Definition: IAgoraRtcEngine.h:3720
agora::rtc::IMetadataObserver::METADATA_TYPE
METADATA_TYPE
Metadata type of the observer. We only support video metadata for now.
Definition: IAgoraRtcEngine.h:4253
agora::rtc::IRtcEngine::stopLocalVideoTranscoder
virtual int stopLocalVideoTranscoder()=0
Stops the local video mixing.
agora::rtc::IRtcEngine::setCloudProxy
virtual int setCloudProxy(CLOUD_PROXY_TYPE proxyType)=0
Sets up cloud proxy service.
agora::rtc::RemoteAudioStats::receivedBitrate
int receivedBitrate
Definition: IAgoraRtcEngine.h:469
agora::rtc::VideoEncoderConfiguration
Video encoder configurations.
Definition: AgoraBase.h:2158
agora::rtc::IMetadataObserver::Metadata::channelId
const char * channelId
Definition: IAgoraRtcEngine.h:4281
agora::rtc::IRtcEngineEventHandler
Definition: IAgoraRtcEngine.h:1836
agora::rtc::VideoCompositingLayout::Region::height
double height
Definition: IAgoraRtcEngine.h:686
agora::rtc::IRtcEngine::leaveChannel
virtual int leaveChannel(const LeaveChannelOptions &options)=0
Sets channel options and leaves the channel.
agora::rtc::IVideoDeviceManager::getDevice
virtual int getDevice(char deviceIdUTF8[MAX_DEVICE_ID_LENGTH])=0
Retrieves the current video capture device.
agora::rtc::IRtcEngine::startAudioMixing
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle, int startPos)=0
Starts playing the music file.
agora::rtc::IRtcEngineEventHandler::onUserMuteAudio
virtual void onUserMuteAudio(uid_t uid, bool muted)
Occurs when a remote user (in the communication profile) or a host (in the live streaming profile) st...
Definition: IAgoraRtcEngine.h:2489
agora::rtc::ChannelMediaOptions::publishCustomAudioTrackId
Optional< int > publishCustomAudioTrackId
Definition: IAgoraRtcEngine.h:1349
agora::rtc::VideoSubscriptionOptions
Video subscription options.
Definition: AgoraBase.h:1806
agora::rtc::IRtcEngine::registerLocalUserAccount
virtual int registerLocalUserAccount(const char *appId, const char *userAccount)=0
Registers a user account.
agora::rtc::IRtcEngineEventHandler::onUplinkNetworkInfoUpdated
virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo &info)
Occurs when the uplink network information changes.
Definition: IAgoraRtcEngine.h:2181
agora::rtc::DirectCdnStreamingMediaOptions::publishMicrophoneTrack
Optional< bool > publishMicrophoneTrack
Definition: IAgoraRtcEngine.h:4518
agora::rtc::EchoTestConfiguration
The configuration of the audio and video call loop test.
Definition: AgoraBase.h:7759
agora::rtc::RtcImage
Image properties.
Definition: AgoraBase.h:4468
agora::rtc::VideoCompositingLayout::backgroundColor
const char * backgroundColor
Definition: IAgoraRtcEngine.h:722
agora::rtc::IRtcEngine::getAudioMixingCurrentPosition
virtual int getAudioMixingCurrentPosition()=0
Retrieves the playback position (ms) of the music file.
agora::rtc::IRtcEngine::startDirectCdnStreaming
virtual int startDirectCdnStreaming(IDirectCdnStreamingEventHandler *eventHandler, const char *publishUrl, const DirectCdnStreamingMediaOptions &options)=0
Starts pushing media streams to the CDN directly.
agora::rtc::IRtcEngine::registerAudioSpectrumObserver
virtual int registerAudioSpectrumObserver(agora::media::IAudioSpectrumObserver *observer)=0
Registers an audio spectrum observer.
agora::rtc::LocalVideoStats::encodedBitrate
int encodedBitrate
Definition: IAgoraRtcEngine.h:390
agora::rtc::LocalVideoStats::qualityAdaptIndication
QUALITY_ADAPT_INDICATION qualityAdaptIndication
Definition: IAgoraRtcEngine.h:385
agora::rtc::IRtcEngine::enableDualStreamMode
virtual int enableDualStreamMode(bool enabled, const SimulcastStreamConfig &streamConfig) __deprecated=0
Sets the dual-stream mode on the sender side and the low-quality video stream.
agora::rtc::ChannelMediaOptions::customVideoTrackId
Optional< video_track_id_t > customVideoTrackId
Definition: IAgoraRtcEngine.h:1516
agora::rtc::SimulcastStreamConfig
The configuration of the low-quality video stream.
Definition: AgoraBase.h:2331
agora::rtc::IRtcEngineEventHandler::onConnectionInterrupted
virtual void onConnectionInterrupted() __deprecated
Occurs when the connection between the SDK and the server is interrupted.
Definition: IAgoraRtcEngine.h:2810
agora::rtc::IRtcEngine::setMixedAudioFrameParameters
virtual int setMixedAudioFrameParameters(int sampleRate, int channel, int samplesPerCall)=0
Sets the format of the raw audio data after mixing for audio capture and playback.
agora::rtc::IRtcEngine::getVolumeOfEffect
virtual int getVolumeOfEffect(int soundId)=0
Gets the volume of a specified audio effect file.
agora::rtc::IMetadataObserver::getMaxMetadataSize
virtual int getMaxMetadataSize()
Occurs when the SDK requests the maximum size of the metadata.
Definition: IAgoraRtcEngine.h:4316
agora::rtc::FaceShapeBeautyOptions
The facial enhancement style options.
Definition: AgoraBase.h:5811
agora::rtc::IRtcEngine::setSubscribeAudioAllowlist
virtual int setSubscribeAudioAllowlist(uid_t *uidList, int uidNumber)=0
Sets the allowlist of subscriptions for audio streams.
agora::rtc::IRtcEngine::getConnectionState
virtual CONNECTION_STATE_TYPE getConnectionState()=0
Gets the current connection state of the SDK.
agora::rtc::ExtensionInfo::channelId
const char * channelId
Definition: IAgoraRtcEngine.h:4628
agora::rtc::IRtcEngine::adjustUserPlaybackSignalVolume
virtual int adjustUserPlaybackSignalVolume(uid_t uid, int volume)=0
Adjusts the playback signal volume of a specified remote user.
agora::rtc::IRtcEngine::isFeatureAvailableOnDevice
virtual bool isFeatureAvailableOnDevice(FeatureType type)=0
Checks whether the device supports the specified advanced feature.
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
Sets the properties of the extension.
agora::rtc::IRtcEngine::enableEncryption
virtual int enableEncryption(bool enabled, const EncryptionConfig &config)=0
Enables or disables the built-in encryption.
agora::rtc::IRtcEngine::getFaceShapeBeautyOptions
virtual int getFaceShapeBeautyOptions(FaceShapeBeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Gets the beauty effect options.
agora::rtc::IRtcEngine::enableContentInspect
virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config)=0
Enables or disables video screenshot and upload.
agora::rtc::IRtcEngineEventHandler::onRemoteAudioStateChanged
virtual void onRemoteAudioStateChanged(uid_t uid, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason, int elapsed)
Occurs when the remote audio state changes.
Definition: IAgoraRtcEngine.h:3074
agora::rtc::IRtcEngine::startRhythmPlayer
virtual int startRhythmPlayer(const char *sound1, const char *sound2, const AgoraRhythmPlayerConfig &config)=0
Enables the virtual metronome.
agora::rtc::IRtcEngine::configRhythmPlayer
virtual int configRhythmPlayer(const AgoraRhythmPlayerConfig &config)=0
Configures the virtual metronome.
agora::rtc::IRtcEngine::setPlaybackAudioFrameBeforeMixingParameters
virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel, int samplesPerCall)=0
Sets the format of audio data in the onPlaybackAudioFrameBeforeMixing callback.
agora::rtc::ExtensionContext
The context information of the extension.
Definition: AgoraMediaBase.h:41
agora::rtc::IVideoEffectObject::VIDEO_EFFECT_NODE_ID
VIDEO_EFFECT_NODE_ID
Types of applicable video effect nodes.
Definition: IAgoraRtcEngine.h:3927
agora::rtc::IRtcEngine::adjustAudioMixingPublishVolume
virtual int adjustAudioMixingPublishVolume(int volume)=0
Adjusts the volume of audio mixing for publishing.
agora::rtc::DirectCdnStreamingMediaOptions::publishCameraTrack
Optional< bool > publishCameraTrack
Definition: IAgoraRtcEngine.h:4512
agora::rtc::IVideoDeviceCollection::getCount
virtual int getCount()=0
Gets the total number of the indexed video devices in the system.
agora::rtc::IVideoEffectObject::VIDEO_EFFECT_NODE_ID::FILTER
@ FILTER
agora::rtc::IRtcEngine::getAudioMixingDuration
virtual int getAudioMixingDuration()=0
Retrieves the duration (ms) of the music file.
agora::rtc::IRtcEngine::adjustCustomAudioPlayoutVolume
virtual int adjustCustomAudioPlayoutVolume(track_id_t trackId, int volume)=0
Adjusts the volume of the custom audio track played locally.
agora::rtc::IRtcEngine::destroyMediaRecorder
virtual int destroyMediaRecorder(agora_refptr< IMediaRecorder > mediaRecorder)=0
Destroys an audio and video recording object.
agora::rtc::RemoteAudioStats::frozenRateByCustomPlcCount
uint32_t frozenRateByCustomPlcCount
Definition: IAgoraRtcEngine.h:501
agora::rtc::ScreenCaptureConfiguration::params
ScreenCaptureParameters params
Definition: IAgoraRtcEngine.h:1018
agora::rtc::IRtcEngineEventHandler::onVideoDeviceStateChanged
virtual void onVideoDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Occurs when the video device state changes.
Definition: IAgoraRtcEngine.h:2119
agora::rtc::IMetadataObserver
Definition: IAgoraRtcEngine.h:4245
agora::rtc::VideoCompositingLayout::appData
const char * appData
Definition: IAgoraRtcEngine.h:732
agora::rtc::IRtcEngineEventHandler::onLocalVideoEvent
virtual void onLocalVideoEvent(VIDEO_SOURCE_TYPE source, LOCAL_VIDEO_EVENT_TYPE event)
Occurs when the local video event occurs.
Definition: IAgoraRtcEngine.h:2313
agora::rtc::IVideoEffectObject::setVideoEffectBoolParam
virtual int setVideoEffectBoolParam(const char *option, const char *key, bool param)=0
Sets the boolean parameter for video effects.
agora::rtc::RemoteAudioStats::totalFrozenTime
int totalFrozenTime
Definition: IAgoraRtcEngine.h:474
agora::rtc::IVideoEffectObject::setVideoEffectFloatParam
virtual int setVideoEffectFloatParam(const char *option, const char *key, float param)=0
Sets the float parameter for video effects.
agora::rtc::IRtcEngineEventHandler::onAudioMixingPositionChanged
virtual void onAudioMixingPositionChanged(int64_t position)
Reports the playback progress of a music file.
Definition: IAgoraRtcEngine.h:2076
agora::rtc::IRtcEngine::setRemoteVoicePosition
virtual int setRemoteVoicePosition(uid_t uid, double pan, double gain)=0
Sets the 2D position (the position on the horizontal plane) of the remote user's voice.
agora::rtc::IRtcEngine::registerMediaMetadataObserver
virtual int registerMediaMetadataObserver(IMetadataObserver *observer, IMetadataObserver::METADATA_TYPE type)=0
Registers the metadata observer.
agora::rtc::ColorEnhanceOptions
The color enhancement options.
Definition: AgoraBase.h:5998
agora::rtc::PublisherConfiguration::defaultLayout
int defaultLayout
Definition: IAgoraRtcEngine.h:835
agora::rtc::IRtcEngineEventHandler::onTranscodingUpdated
virtual void onTranscodingUpdated()
Occurs when the publisher's transcoding is updated.
Definition: IAgoraRtcEngine.h:3254
agora::rtc::IRtcEngine::updateRtmpTranscoding
virtual int updateRtmpTranscoding(const LiveTranscoding &transcoding)=0
Updates the transcoding configuration.
agora::rtc::ScreenCaptureConfiguration::displayId
int64_t displayId
Definition: IAgoraRtcEngine.h:1004
agora::rtc::RemoteAudioStats::publishDuration
int publishDuration
Definition: IAgoraRtcEngine.h:528
agora::rtc::IRtcEngineEventHandler::onRequestToken
virtual void onRequestToken()
Occurs when the token expires.
Definition: IAgoraRtcEngine.h:2936
agora::rtc::IRtcEngineEventHandler::onError
virtual void onError(int err, const char *msg)
Reports an error during SDK runtime.
Definition: IAgoraRtcEngine.h:1927
agora::rtc::IRtcEngine::getNtpWallTimeInMs
virtual uint64_t getNtpWallTimeInMs()=0
Gets the current NTP (Network Time Protocol) time.
agora::rtc::IRtcEngine::startRtmpStreamWithoutTranscoding
virtual int startRtmpStreamWithoutTranscoding(const char *url)=0
Starts pushing media streams to a CDN without transcoding.
agora::rtc::VideoCompositingLayout::regionCount
int regionCount
Definition: IAgoraRtcEngine.h:729
agora::rtc::ExtensionInfo::mediaSourceType
agora::media::MEDIA_SOURCE_TYPE mediaSourceType
Definition: IAgoraRtcEngine.h:4608
agora::rtc::IRtcEngineEventHandler::onProxyConnected
virtual void onProxyConnected(const char *channel, uid_t uid, PROXY_TYPE proxyType, const char *localProxyIp, int elapsed)
Reports the proxy connection state.
Definition: IAgoraRtcEngine.h:1907
agora::rtc::IRtcEngineEventHandler::onExtensionEventWithContext
virtual void onExtensionEventWithContext(const ExtensionContext &context, const char *key, const char *value)
The event callback of the extension.
Definition: IAgoraRtcEngine.h:3647
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
Enables or disables extensions.
agora::rtc::IRtcEngineEventHandler::onUserStateChanged
virtual void onUserStateChanged(uid_t uid, REMOTE_USER_STATE state)
Definition: IAgoraRtcEngine.h:2541
agora::rtc::PublisherConfiguration::height
int height
Definition: IAgoraRtcEngine.h:821
agora::rtc::IRtcEngineEventHandler::onAudioMixingFinished
virtual void onAudioMixingFinished() __deprecated
Occurs when the playback of the local music file finishes.
Definition: IAgoraRtcEngine.h:2091
agora::rtc::AVideoDeviceManager
Definition: IAgoraRtcEngine.h:12599
agora::rtc::LocalVideoStats::codecType
VIDEO_CODEC_TYPE codecType
Definition: IAgoraRtcEngine.h:398
agora::rtc::ExtensionInfo::localUid
uid_t localUid
Definition: IAgoraRtcEngine.h:4633
agora::rtc::ChannelMediaOptions::publishLoopbackAudioTrack
Optional< bool > publishLoopbackAudioTrack
Definition: IAgoraRtcEngine.h:1358
agora::rtc::IRtcEngine::setSubscribeVideoBlocklist
virtual int setSubscribeVideoBlocklist(uid_t *uidList, int uidNumber)=0
Sets the blocklist of subscriptions for video streams.
agora::rtc::LocalTranscoderConfiguration
The configuration of the video mixing on the local client.
Definition: AgoraBase.h:4911
agora::rtc::IRtcEngine::adjustAudioMixingPlayoutVolume
virtual int adjustAudioMixingPlayoutVolume(int volume)=0
Adjusts the volume of audio mixing for local playback.
agora::rtc::IRtcEngine::removeVideoWatermark
virtual int removeVideoWatermark(const char *id)=0
Removes the watermark image from the local video.
agora::rtc::InjectStreamConfig::audioBitrate
int audioBitrate
Definition: IAgoraRtcEngine.h:777
agora::rtc::AudioTrackIdList
Definition: IAgoraRtcEngine.h:1240
agora::rtc::IRtcEngine::setCameraDeviceOrientation
virtual int setCameraDeviceOrientation(VIDEO_SOURCE_TYPE type, VIDEO_ORIENTATION orientation)=0
Sets the rotation angle of the captured video.
agora::rtc::IRtcEngineEventHandler::onAudioVolumeIndication
virtual void onAudioVolumeIndication(const AudioVolumeInfo *speakers, unsigned int speakerNumber, int totalVolume)
Reports the volume information of users.
Definition: IAgoraRtcEngine.h:2007
agora::rtc::IRtcEngineEventHandler::onStreamMessageError
virtual void onStreamMessageError(uid_t uid, int streamId, int code, int missed, int cached)
Occurs when the local user does not receive the data stream from the remote user.
Definition: IAgoraRtcEngine.h:2861
agora::rtc::IPacketObserver
Definition: AgoraBase.h:4142
agora::rtc::LocalVideoStats::dualStreamEnabled
bool dualStreamEnabled
Definition: IAgoraRtcEngine.h:412
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:542
agora::rtc::ChannelMediaOptions::publishEncodedVideoTrack
Optional< bool > publishEncodedVideoTrack
Definition: IAgoraRtcEngine.h:1385
agora::rtc::IRtcEngine::setDualStreamMode
virtual int setDualStreamMode(SIMULCAST_STREAM_MODE mode)=0
Sets the dual-stream mode on the sender side.
agora::rtc::DirectCdnStreamingStats
The statistics of the current CDN streaming.
Definition: IAgoraRtcEngine.h:4429
agora::rtc::VideoFormat
The format of the video frame.
Definition: AgoraBase.h:3268
agora::rtc::RemoteVideoStats::uid
uid_t uid
Definition: IAgoraRtcEngine.h:580
agora::rtc::IRtcEngineEventHandler::onUserOffline
virtual void onUserOffline(uid_t uid, USER_OFFLINE_REASON_TYPE reason)
Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) leaves...
Definition: IAgoraRtcEngine.h:2467
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
Registers an extension.
agora::rtc::IRtcEngine::stopRtmpStream
virtual int stopRtmpStream(const char *url)=0
Stops pushing media streams to a CDN.
agora::rtc::DataStreamConfig
The configurations for the data stream.
Definition: AgoraBase.h:2286
agora::rtc::IRtcEngineEventHandler::onCameraFocusAreaChanged
virtual void onCameraFocusAreaChanged(int x, int y, int width, int height)
Occurs when the camera focus area changes.
Definition: IAgoraRtcEngine.h:2653
agora::rtc::VideoCompositingLayout::Region::y
double y
Definition: IAgoraRtcEngine.h:680
agora::rtc::IRtcEngine::stopAudioMixing
virtual int stopAudioMixing()=0
Stops playing the music file.
agora::rtc::IVideoEffectObject::RESET
@ RESET
Definition: IAgoraRtcEngine.h:3959
agora::rtc::PublisherConfiguration
Definition: IAgoraRtcEngine.h:813
agora::rtc::IRtcEngineEventHandler::onExtensionStartedWithContext
virtual void onExtensionStartedWithContext(const ExtensionContext &context)
Occurrs when the extension is enabled.
Definition: IAgoraRtcEngine.h:3662
agora::rtc::IRtcEngine::setLogLevel
virtual int setLogLevel(commons::LOG_LEVEL level)=0
Sets the output log level of the SDK.
agora::rtc::RtcEngineContext::logConfig
commons::LogConfig logConfig
Definition: IAgoraRtcEngine.h:4195
agora::rtc::IRtcEngine::setRemoteDefaultVideoStreamType
virtual int setRemoteDefaultVideoStreamType(VIDEO_STREAM_TYPE streamType)=0
Sets the default video stream type to subscribe to.
agora::rtc::LocalAudioMixerConfiguration
The configurations for mixing the lcoal audio.
Definition: AgoraBase.h:5036
agora::rtc::IRtcEngine::setRemoteVideoStreamType
virtual int setRemoteVideoStreamType(uid_t uid, VIDEO_STREAM_TYPE streamType)=0
Sets the video stream type to subscribe to.
agora::rtc::IRtcEngineEventHandler::onUserEnableVideo
virtual void onUserEnableVideo(uid_t uid, bool enabled)
Occurs when a remote user enables or disables the video module.
Definition: IAgoraRtcEngine.h:2531
agora::rtc::IRtcEngineEventHandler::onRtmpStreamingStateChanged
virtual void onRtmpStreamingStateChanged(const char *url, RTMP_STREAM_PUBLISH_STATE state, RTMP_STREAM_PUBLISH_REASON reason)
Occurs when the state of Media Push changes.
Definition: IAgoraRtcEngine.h:3224
agora::rtc::InjectStreamConfig::height
int height
Definition: IAgoraRtcEngine.h:757
agora::rtc::IRtcEngine::destroyVideoEffectObject
virtual int destroyVideoEffectObject(agora_refptr< IVideoEffectObject > videoEffectObject)=0
Destroys a video effect object.
agora::rtc::ChannelMediaOptions::publishFourthCameraTrack
Optional< bool > publishFourthCameraTrack
Definition: IAgoraRtcEngine.h:1285
agora::rtc::IRtcEngine::startRtmpStreamWithTranscoding
virtual int startRtmpStreamWithTranscoding(const char *url, const LiveTranscoding &transcoding)=0
Starts Media Push and sets the transcoding configuration.
agora::rtc::DirectCdnStreamingMediaOptions
The media setting options for the host.
Definition: IAgoraRtcEngine.h:4506
agora::rtc::IRtcEngine::setVideoEncoderConfiguration
virtual int setVideoEncoderConfiguration(const VideoEncoderConfiguration &config)=0
Sets the video encoder configuration.
agora::rtc::AdvancedAudioOptions
The advanced options for audio.
Definition: IAgoraRtcEngine.h:1209
agora::rtc::IRtcEngine::queryCodecCapability
virtual int queryCodecCapability(CodecCapInfo *codecInfo, int &size)=0
Queries the video codec capabilities of the SDK.
agora::rtc::IRtcEngine::stopAllEffects
virtual int stopAllEffects()=0
Stops playing all audio effects.
agora::rtc::IRtcEngine::setLocalRenderMode
virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode) __deprecated=0
Updates the display mode of the local video view.
agora::rtc::IRtcEngine::pauseAllChannelMediaRelay
virtual int pauseAllChannelMediaRelay()=0
Pauses the media stream relay to all target channels.
agora::rtc::LocalVideoStats::captureFrameHeight
int captureFrameHeight
Definition: IAgoraRtcEngine.h:337
agora::rtc::IRtcEngineEventHandler::onAudioQuality
virtual void onAudioQuality(uid_t uid, int quality, unsigned short delay, unsigned short lost) __deprecated
Reports the statistics of the audio stream sent by each remote user.
Definition: IAgoraRtcEngine.h:1950
agora::rtc::IRtcEngine::startAudioMixing
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle)=0
Starts playing the music file.
agora::rtc::IRtcEngine::adjustLoopbackSignalVolume
virtual int adjustLoopbackSignalVolume(int volume)=0
Adjusts the volume of the signal captured by the sound card.
agora::rtc::IRtcEngine::takeSnapshot
virtual int takeSnapshot(uid_t uid, const char *filePath)=0
Takes a snapshot of a video stream.
agora::rtc::RtcEngineContext::license
const char * license
Definition: IAgoraRtcEngine.h:4162
agora::rtc::ScreenCaptureConfiguration::regionRect
Rectangle regionRect
Definition: IAgoraRtcEngine.h:1025
agora::rtc::VideoCompositingLayout::canvasWidth
int canvasWidth
Definition: IAgoraRtcEngine.h:714
agora::rtc::IRtcEngine::sendMediaControlMessage
virtual int sendMediaControlMessage(uid_t uid, const char *data, size_t length)=0
Send media control message.
agora::rtc::LeaveChannelOptions::stopMicrophoneRecording
bool stopMicrophoneRecording
Definition: IAgoraRtcEngine.h:1821
agora::rtc::PublisherConfiguration::rawStreamUrl
const char * rawStreamUrl
Definition: IAgoraRtcEngine.h:860
agora::rtc::RemoteAudioStats::mosValue
int mosValue
Definition: IAgoraRtcEngine.h:496
agora::rtc::IRtcEngineEventHandler::onRemoteVideoStats
virtual void onRemoteVideoStats(const RemoteVideoStats &stats)
Reports the statistics of the video stream sent by each remote users.
Definition: IAgoraRtcEngine.h:2626
agora::rtc::IRtcEngine::setAudioEffectParameters
virtual int setAudioEffectParameters(AUDIO_EFFECT_PRESET preset, int param1, int param2)=0
Sets parameters for SDK preset audio effects.
agora::rtc::IRtcEngine::setColorEnhanceOptions
virtual int setColorEnhanceOptions(bool enabled, const ColorEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets color enhancement.
agora::rtc::IRtcEngineEventHandler::onTokenPrivilegeWillExpire
virtual void onTokenPrivilegeWillExpire(const char *token)
Occurs when the token expires in 30 seconds.
Definition: IAgoraRtcEngine.h:2958
agora::rtc::LocalVideoStats::targetFrameRate
int targetFrameRate
Definition: IAgoraRtcEngine.h:380
agora::rtc::DirectCdnStreamingStats::audioBitrate
int audioBitrate
Definition: IAgoraRtcEngine.h:4453
agora::rtc::IRtcEngine::setRemoteSubscribeFallbackOption
virtual int setRemoteSubscribeFallbackOption(STREAM_FALLBACK_OPTIONS option)=0
Sets the fallback option for the subscribed video stream based on the network conditions.
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:4157
agora::rtc::IRtcEngineEventHandler::onRemoteSubscribeFallbackToAudioOnly
virtual void onRemoteSubscribeFallbackToAudioOnly(uid_t uid, bool isFallbackOrRecover)
Occurs when the remote media stream falls back to the audio-only stream due to poor network condition...
Definition: IAgoraRtcEngine.h:3304
agora::rtc::IRtcEngine::setEarMonitoringAudioFrameParameters
virtual int setEarMonitoringAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
Sets the format of the in-ear monitoring raw audio data.
agora::rtc::IRtcEngineEventHandler::onContentInspectResult
virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result)
Definition: IAgoraRtcEngine.h:3106
agora::rtc::IRtcEngineEventHandler::onAudioDeviceStateChanged
virtual void onAudioDeviceStateChanged(const char *deviceId, int deviceType, int deviceState)
Occurs when the audio device state changes.
Definition: IAgoraRtcEngine.h:2056
agora::rtc::IAudioEncodedFrameObserver
Definition: AgoraBase.h:7073
agora::rtc::ChannelMediaOptions::token
Optional< const char * > token
Definition: IAgoraRtcEngine.h:1483
agora::rtc::ChannelMediaOptions::parameters
Optional< const char * > parameters
Definition: IAgoraRtcEngine.h:1530
agora::rtc::LeaveChannelOptions
The options for leaving a channel.
Definition: IAgoraRtcEngine.h:1803
agora::rtc::IRtcEngineEventHandler::onRemoteAudioStats
virtual void onRemoteAudioStats(const RemoteAudioStats &stats)
Reports the transport-layer statistics of each remote audio stream.
Definition: IAgoraRtcEngine.h:2582
agora::rtc::IRtcEngine::setEffectsVolume
virtual int setEffectsVolume(int volume)=0
Sets the volume of the audio effects.
agora::rtc::IRtcEngine::playAllEffects
virtual int playAllEffects(int loopCount, double pitch, double pan, int gain, bool publish=false)=0
Plays all audio effect files.
agora::rtc::DirectCdnStreamingStats::fps
int fps
Definition: IAgoraRtcEngine.h:4443
agora::rtc::IRtcEngine::stopLastmileProbeTest
virtual int stopLastmileProbeTest()=0
Stops the last mile network probe test.
agora::rtc::ChannelMediaRelayConfiguration
Configuration of cross channel media relay.
Definition: AgoraBase.h:7307
agora::rtc::IRtcEngine::setAdvancedAudioOptions
virtual int setAdvancedAudioOptions(AdvancedAudioOptions &options, int sourceType=0)=0
Sets audio advanced options.
agora::rtc::IRtcEngine::createMediaPlayer
virtual agora_refptr< IMediaPlayer > createMediaPlayer()=0
Creates a media player object.
agora::rtc::IRtcEngine::queryInterface
virtual int queryInterface(INTERFACE_ID_TYPE iid, void **inter)=0
Gets the pointer to the specified interface.
agora::rtc::IVideoDeviceCollection
Definition: IAgoraRtcEngine.h:3746
agora::rtc::IRtcEngine::renewToken
virtual int renewToken(const char *token)=0
Renews the token.
agora::rtc::IRtcEngine::pauseAudio
virtual int pauseAudio() __deprecated=0
agora::rtc::IRtcEngine::setAudioProfile
virtual int setAudioProfile(AUDIO_PROFILE_TYPE profile)=0
Sets audio profiles.
agora::rtc::IRtcEngine::sendStreamMessage
virtual int sendStreamMessage(int streamId, const char *data, size_t length)=0
Sends data stream messages.
agora::rtc::LocalVideoStats::txPacketLossRate
unsigned short txPacketLossRate
Definition: IAgoraRtcEngine.h:403
agora::rtc::IRtcEngineEventHandler::onLocalVideoStats
virtual void onLocalVideoStats(VIDEO_SOURCE_TYPE source, const LocalVideoStats &stats)
Reports the statistics of the local video stream.
Definition: IAgoraRtcEngine.h:2610
agora::rtc::ChannelMediaOptions::publishCustomAudioTrack
Optional< bool > publishCustomAudioTrack
Definition: IAgoraRtcEngine.h:1344
agora::rtc::RemoteVideoStats::avSyncTimeMs
int avSyncTimeMs
Definition: IAgoraRtcEngine.h:645
agora::rtc::IRtcEngine::setFilterEffectOptions
virtual int setFilterEffectOptions(bool enabled, const FilterEffectOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the filter effect options and specifies the media source.
agora::rtc::RtcEngineContext::domainLimit
bool domainLimit
Definition: IAgoraRtcEngine.h:4219
agora::rtc::VideoDenoiserOptions
Video noise reduction options.
Definition: AgoraBase.h:5943
agora::rtc::IRtcEngine::enableLoopbackRecording
virtual int enableLoopbackRecording(bool enabled, const char *deviceName=NULL) __deprecated=0
Enables loopback audio capturing.
agora::rtc::IRtcEngine::setLocalVideoMirrorMode
virtual int setLocalVideoMirrorMode(VIDEO_MIRROR_MODE_TYPE mirrorMode) __deprecated=0
Sets the local video mirror mode.
agora::rtc::RemoteVideoStats::decoderOutputFrameRate
int decoderOutputFrameRate
Definition: IAgoraRtcEngine.h:612
agora::rtc::RtcEngineContext::context
void * context
Definition: IAgoraRtcEngine.h:4153
agora::rtc::IRtcEngine::stopLocalAudioMixer
virtual int stopLocalAudioMixer()=0
Stops the local audio mixing.
agora::rtc::IRtcEngineEventHandler::onActiveSpeaker
virtual void onActiveSpeaker(uid_t uid)
Occurs when the most active remote speaker is detected.
Definition: IAgoraRtcEngine.h:3098
agora::rtc::RemoteAudioStats::frozenCntByCustom
uint32_t frozenCntByCustom
Definition: IAgoraRtcEngine.h:511
agora::rtc::ChannelMediaOptions::publishCameraTrack
Optional< bool > publishCameraTrack
Definition: IAgoraRtcEngine.h:1265
agora::rtc::RemoteAudioStats::e2eDelay
int e2eDelay
Definition: IAgoraRtcEngine.h:547
agora::rtc::IRtcEngineEventHandler::onFirstLocalVideoFrame
virtual void onFirstLocalVideoFrame(VIDEO_SOURCE_TYPE source, int width, int height, int elapsed)
Occurs when the first local video frame is displayed on the local video view.
Definition: IAgoraRtcEngine.h:2221
agora::rtc::ChannelMediaOptions::clientRoleType
Optional< CLIENT_ROLE_TYPE > clientRoleType
Definition: IAgoraRtcEngine.h:1448
agora::rtc::ChannelMediaOptions::publishThirdCameraTrack
Optional< bool > publishThirdCameraTrack
Definition: IAgoraRtcEngine.h:1278
agora::rtc::IRtcEngineEventHandler::onJoinChannelSuccess
virtual void onJoinChannelSuccess(const char *channel, uid_t uid, int elapsed)
Occurs when a user joins a channel.
Definition: IAgoraRtcEngine.h:1862
agora::rtc::IRtcEngine::startLocalVideoTranscoder
virtual int startLocalVideoTranscoder(const LocalTranscoderConfiguration &config)=0
Starts the local video mixing.
agora::rtc::DirectCdnStreamingMediaOptions::publishMediaPlayerId
Optional< int > publishMediaPlayerId
Definition: IAgoraRtcEngine.h:4541
agora::rtc::ChannelMediaOptions::channelProfile
Optional< CHANNEL_PROFILE_TYPE > channelProfile
Definition: IAgoraRtcEngine.h:1461
agora::rtc::RemoteAudioStats::audioLossRate
int audioLossRate
Definition: IAgoraRtcEngine.h:457
agora::rtc::VideoCompositingLayout::Region::zOrder
int zOrder
Definition: IAgoraRtcEngine.h:690
agora::rtc::IRtcEngine::queryDeviceScore
virtual int queryDeviceScore()=0
Queries device score.
agora::rtc::LocalVideoStats::captureFrameRate
int captureFrameRate
Definition: IAgoraRtcEngine.h:329
agora::rtc::VirtualBackgroundSource
The custom background.
Definition: AgoraBase.h:6028
agora::rtc::IRtcEngine::setParameters
virtual int setParameters(const char *parameters)=0
Provides technical preview functionalities or special customizations by configuring the SDK with JSON...
agora::rtc::IRtcEngine::muteRemoteVideoStream
virtual int muteRemoteVideoStream(uid_t uid, bool mute)=0
Stops or resumes subscribing to the video stream of a specified user.
agora::rtc::IRtcEngine::setLowlightEnhanceOptions
virtual int setLowlightEnhanceOptions(bool enabled, const LowlightEnhanceOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets low-light enhancement.
agora::rtc::IVideoDeviceManager
Definition: IAgoraRtcEngine.h:3791
agora::rtc::RemoteVideoStats::frozenRate
int frozenRate
Definition: IAgoraRtcEngine.h:640
agora::rtc::IRtcEngine::getCurrentMonotonicTimeInMs
virtual int64_t getCurrentMonotonicTimeInMs()=0
Gets the current Monotonic Time of the SDK.
agora::rtc::ScreenCaptureConfiguration::windowId
int64_t windowId
Definition: IAgoraRtcEngine.h:1014
agora::rtc::IRtcEngine::enableLocalAudio
virtual int enableLocalAudio(bool enabled)=0
Enables or disables the local audio capture.
agora::rtc::IRtcEngine::setupLocalVideo
virtual int setupLocalVideo(const VideoCanvas &canvas)=0
Initializes the local video view.
agora::rtc::VideoCompositingLayout::appDataLength
int appDataLength
Definition: IAgoraRtcEngine.h:735
agora::rtc::IRtcEngine::setLocalVoiceReverb
virtual int setLocalVoiceReverb(AUDIO_REVERB_TYPE reverbKey, int value)=0
Sets the local voice reverberation.
agora::rtc::IRtcEngine::stopEffect
virtual int stopEffect(int soundId)=0
Stops playing a specified audio effect.
agora::rtc::VideoCompositingLayout::Region::alpha
double alpha
Definition: IAgoraRtcEngine.h:695
agora::rtc::IRtcEngine::enableCustomAudioLocalPlayback
virtual int enableCustomAudioLocalPlayback(track_id_t trackId, bool enabled)=0
Sets whether to enable the local playback of external audio source.
agora::rtc::IVideoEffectObject::addOrUpdateVideoEffect
virtual int addOrUpdateVideoEffect(uint32_t nodeId, const char *templateName)=0
Adds or updates the video effect for the specified node ID and template.
agora::rtc::DirectCdnStreamingMediaOptions::publishCustomVideoTrack
Optional< bool > publishCustomVideoTrack
Definition: IAgoraRtcEngine.h:4530
agora::rtc::ScreenCaptureConfiguration::isCaptureWindow
bool isCaptureWindow
Definition: IAgoraRtcEngine.h:999
agora::rtc::LocalVideoStats::encodedFrameHeight
int encodedFrameHeight
Definition: IAgoraRtcEngine.h:367
agora::rtc::IRtcEngineEventHandler::onAudioMetadataReceived
virtual void onAudioMetadataReceived(uid_t uid, const char *metadata, size_t length)
Definition: IAgoraRtcEngine.h:3630
agora::rtc::IRtcEngine::setLocalVoiceFormant
virtual int setLocalVoiceFormant(double formantRatio)=0
Sets the formant ratio to change the timbre of human voice.
agora::rtc::AdvancedAudioOptions::audioProcessingChannels
Optional< int > audioProcessingChannels
Definition: IAgoraRtcEngine.h:1215
agora::rtc::ImageTrackOptions::imageUrl
const char * imageUrl
Definition: IAgoraRtcEngine.h:1230
agora::rtc::IRtcEngine::getUserInfoByUserAccount
virtual int getUserInfoByUserAccount(const char *userAccount, rtc::UserInfo *userInfo)=0
Gets the user information by passing in the user account.
agora::rtc::IRtcEngine::setLogFile
virtual int setLogFile(const char *filePath)=0
Sets the log file.
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
Enables/Disables the virtual background.
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
Sets the camera capture configuration.
agora::rtc::FaceShapeAreaOptions::FACE_SHAPE_AREA
FACE_SHAPE_AREA
Chooses the specific facial areas that need to be adjusted.
Definition: AgoraBase.h:5596
agora::rtc::ChannelMediaOptions::channelType
Optional< CHANNEL_TYPE > channelType
Definition: IAgoraRtcEngine.h:1570
agora::rtc::RemoteVideoStats::__deprecated
int delay __deprecated
Definition: IAgoraRtcEngine.h:588
agora::rtc::CameraCapturerConfiguration::deviceId
Optional< const char * > deviceId
Definition: IAgoraRtcEngine.h:954
agora::rtc::RemoteAudioStats::quality
int quality
Definition: IAgoraRtcEngine.h:443
agora::rtc::PublisherConfiguration::width
int width
Definition: IAgoraRtcEngine.h:817
agora::rtc::VideoCompositingLayout::Region::width
double width
Definition: IAgoraRtcEngine.h:684
agora::rtc::IRtcEngine::startEchoTest
virtual int startEchoTest(const EchoTestConfiguration &config)=0
Starts an audio device loopback test.
agora::rtc::IRtcEngine::startOrUpdateChannelMediaRelay
virtual int startOrUpdateChannelMediaRelay(const ChannelMediaRelayConfiguration &configuration)=0
Starts relaying media streams across channels or updates channels for media relay.
agora::rtc::IRtcEngineEventHandler::onConnectionBanned
virtual void onConnectionBanned() __deprecated
Occurs when the connection is banned by the Agora server.
Definition: IAgoraRtcEngine.h:2817
agora::rtc::IRtcEngine::getEffectsVolume
virtual int getEffectsVolume()=0
Retrieves the volume of the audio effects.
agora::rtc::IRtcEngineEventHandler::onEncryptionError
virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType)
Reports the built-in encryption errors.
Definition: IAgoraRtcEngine.h:3401
agora::rtc::IRtcEngineEventHandler::onCameraReady
virtual void onCameraReady() __deprecated
Occurs when the camera turns on and is ready to capture the video.
Definition: IAgoraRtcEngine.h:2640
agora::rtc::IRtcEngine::getEffectDuration
virtual int getEffectDuration(const char *filePath)=0
Retrieves the duration of the audio effect file.
agora::rtc::CodecCapInfo
The codec capability of the SDK.
Definition: AgoraBase.h:2120
agora::commons::LogConfig
Configuration of Agora SDK log files.
Definition: IAgoraLog.h:124
agora::rtc::IRtcEngine::setPlaybackAudioFrameParameters
virtual int setPlaybackAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
Sets the format of the raw audio playback data.
agora::rtc::IRtcEngine::setLogFileSize
virtual int setLogFileSize(unsigned int fileSizeInKBytes)=0
Sets the log file size.
agora::rtc::IRtcEngineEventHandler::onRenewTokenResult
virtual void onRenewTokenResult(const char *token, RENEW_TOKEN_ERROR_CODE code)
Callback for renewToken call result.
Definition: IAgoraRtcEngine.h:3737
agora::rtc::LeaveChannelOptions::stopAllEffect
bool stopAllEffect
Definition: IAgoraRtcEngine.h:1815
agora::rtc::ChannelMediaOptions::defaultVideoStreamType
Optional< VIDEO_STREAM_TYPE > defaultVideoStreamType
Definition: IAgoraRtcEngine.h:1457
agora::rtc::IRtcEngine::preloadChannelWithUserAccount
virtual int preloadChannelWithUserAccount(const char *token, const char *channelId, const char *userAccount)=0
Preloads a channel with token, channelId, and userAccount.
agora::rtc::RemoteVideoStats::rxVideoBytes
unsigned int rxVideoBytes
Definition: IAgoraRtcEngine.h:667
createAgoraRtcEngine
AGORA_API agora::rtc::IRtcEngine *AGORA_CALL createAgoraRtcEngine()
Creates one IRtcEngine object.
agora::rtc::IRtcEngine::setBeautyEffectOptions
virtual int setBeautyEffectOptions(bool enabled, const BeautyOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the image enhancement options.
agora::rtc::IRtcEngine::startAudioRecording
virtual int startAudioRecording(const AudioRecordingConfiguration &config)=0
Starts client-side audio recording with recording configuration.
agora::rtc::RtcEngineContext::autoRegisterAgoraExtensions
bool autoRegisterAgoraExtensions
Definition: IAgoraRtcEngine.h:4227
agora::rtc::LocalVideoStats
The statistics of the local video stream.
Definition: IAgoraRtcEngine.h:311
agora::rtc::IMetadataObserver::onMetadataReceived
virtual void onMetadataReceived(const Metadata &metadata)=0
Occurs when the local user receives the metadata.
agora::rtc::IRtcEngine::setAudioMixingPlaybackSpeed
virtual int setAudioMixingPlaybackSpeed(int speed)=0
Sets the playback speed of the current audio file.
agora::rtc::IRtcEngine::createVideoEffectObject
virtual agora_refptr< IVideoEffectObject > createVideoEffectObject(const char *bundlePath, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Creates a video effect object.
agora::rtc::MultipathStats
Aggregates statistics of each network path in multipath transmission.
Definition: AgoraBase.h:2796
agora::rtc::IRtcEngine::resumeAllChannelMediaRelay
virtual int resumeAllChannelMediaRelay()=0
Resumes the media stream relay to all target channels.
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:1441
agora::rtc::IDirectCdnStreamingEventHandler
Definition: IAgoraRtcEngine.h:4462
agora::rtc::IRtcEngineEventHandler::onLocalAudioStateChanged
virtual void onLocalAudioStateChanged(LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reason)
Occurs when the local audio stream state changes.
Definition: IAgoraRtcEngine.h:3050
agora::rtc::IRtcEngine::setRemoteRenderTargetFps
virtual int setRemoteRenderTargetFps(int targetFps)=0
Sets the maximum frame rate for rendering remote video.
agora::rtc::IRtcEngineEventHandler::onAudioSubscribeStateChanged
virtual void onAudioSubscribeStateChanged(const char *channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)
Occurs when the audio subscribing state changes.
Definition: IAgoraRtcEngine.h:3535
agora::rtc::IRtcEngineEventHandler::onVideoStopped
virtual void onVideoStopped() __deprecated
Occurs when the video stops playing.
Definition: IAgoraRtcEngine.h:2740
agora::rtc::EncryptionConfig
Built-in encryption configurations.
Definition: AgoraBase.h:7533
agora::rtc::IRtcEngine::destroyMediaPlayer
virtual int destroyMediaPlayer(agora_refptr< IMediaPlayer > media_player)=0
Destroys the media player instance.
agora::rtc::LocalVideoStats::simulcastDimensions
VideoDimensions simulcastDimensions[SimulcastConfig::STREAM_LAYER_COUNT_MAX]
Definition: IAgoraRtcEngine.h:421
agora::rtc::IRtcEngine::setAudioMixingPosition
virtual int setAudioMixingPosition(int pos)=0
Sets the audio mixing position.
agora::rtc::ChannelMediaOptions::publishTranscodedVideoTrack
Optional< bool > publishTranscodedVideoTrack
Definition: IAgoraRtcEngine.h:1405
agora::rtc::ChannelMediaOptions::enableAudioRecordingOrPlayout
Optional< bool > enableAudioRecordingOrPlayout
Definition: IAgoraRtcEngine.h:1437
agora::rtc::IRtcEngineEventHandler::onVideoPublishStateChanged
virtual void onVideoPublishStateChanged(VIDEO_SOURCE_TYPE source, const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)
Occurs when the video publishing state changes.
Definition: IAgoraRtcEngine.h:3587
agora::rtc::RemoteVideoStats::receivedBitrate
int receivedBitrate
Definition: IAgoraRtcEngine.h:605
agora::rtc::IRtcEngineEventHandler::onRdtMessage
virtual void onRdtMessage(uid_t userId, RdtStreamType type, const char *data, size_t length)
Occurs when the local user receives data via Reliable Data Transmission (RDT) from a remote user.
Definition: IAgoraRtcEngine.h:2882
agora::rtc::RemoteAudioStats
Audio statistics of the remote user.
Definition: IAgoraRtcEngine.h:435
agora::rtc::TranscodingVideoStream
The video streams for local video mixing.
Definition: AgoraBase.h:4834
agora::rtc::IMetadataObserver::MAX_METADATA_SIZE_TYPE
MAX_METADATA_SIZE_TYPE
Definition: IAgoraRtcEngine.h:4267
agora::rtc::IRtcEngine::enableVideoImageSource
virtual int enableVideoImageSource(bool enable, const ImageTrackOptions &options)=0
Sets whether to replace the current video feeds with images when publishing video streams.
agora::rtc::LocalVideoStats::encoderOutputFrameRate
int encoderOutputFrameRate
Definition: IAgoraRtcEngine.h:359
agora::rtc::IRtcEngine::unregisterAudioSpectrumObserver
virtual int unregisterAudioSpectrumObserver(agora::media::IAudioSpectrumObserver *observer)=0
Unregisters the audio spectrum observer.
agora::rtc::IVideoEffectObject::performVideoEffectAction
virtual int performVideoEffectAction(uint32_t nodeId, VIDEO_EFFECT_ACTION actionId)=0
Performs an action on the specified video effect node.
agora::rtc::IRtcEngine::setupRemoteVideo
virtual int setupRemoteVideo(const VideoCanvas &canvas)=0
Initializes the video view of a remote user.
agora::rtc::IRtcEngineEventHandler::onLastmileProbeResult
virtual void onLastmileProbeResult(const LastmileProbeResult &result)
Reports the last mile network probe result.
Definition: IAgoraRtcEngine.h:1967
agora::rtc::IVideoDeviceManager::startDeviceTest
virtual int startDeviceTest(view_t hwnd)=0
agora::rtc::IRtcEngine::addVideoWatermark
virtual int addVideoWatermark(const RtcImage &watermark) __deprecated=0
Adds a watermark image to the local video.
agora::rtc::IVideoEffectObject::getVideoEffectBoolParam
virtual bool getVideoEffectBoolParam(const char *option, const char *key)=0
Gets the boolean parameter in video effects.
agora::rtc::IRtcEngineEventHandler::onConnectionLost
virtual void onConnectionLost()
Occurs when the SDK cannot reconnect to Agora's edge server 10 seconds after its connection to the se...
Definition: IAgoraRtcEngine.h:2790
agora::rtc::IRtcEngineEventHandler::onUserMuteVideo
virtual void onUserMuteVideo(uid_t uid, bool muted)
Occurs when a remote user stops or resumes publishing the video stream.
Definition: IAgoraRtcEngine.h:2511
agora::rtc::PublisherConfiguration::owner
bool owner
Definition: IAgoraRtcEngine.h:843
agora::rtc::IRtcEngine::setInEarMonitoringVolume
virtual int setInEarMonitoringVolume(int volume)=0
Sets the volume of the in-ear monitor.
agora::rtc::IRtcEngine::enableSoundPositionIndication
virtual int enableSoundPositionIndication(bool enabled)=0
Enables or disables stereo panning for remote users.
agora::rtc::VideoCompositingLayout::regions
const Region * regions
Definition: IAgoraRtcEngine.h:726
agora::rtc::IRtcEngine::stopCameraCapture
virtual int stopCameraCapture(VIDEO_SOURCE_TYPE sourceType)=0
Stops camera capture.
agora::rtc::ChannelMediaOptions::publishMediaPlayerVideoTrack
Optional< bool > publishMediaPlayerVideoTrack
Definition: IAgoraRtcEngine.h:1397
agora::rtc::IRtcEngine::stopPreview
virtual int stopPreview()=0
Stops the local video preview.
agora::rtc::RemoteVideoStats::mosValue
int mosValue
Definition: IAgoraRtcEngine.h:663
agora::rtc::IVideoEffectObject::setVideoEffectIntParam
virtual int setVideoEffectIntParam(const char *option, const char *key, int param)=0
Sets an integer parameter for video effects.
agora::rtc::WatermarkConfig
Used to configure watermark-related information.
Definition: AgoraBase.h:2688
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:4546
agora::rtc::IRtcEngineEventHandler::onVideoSizeChanged
virtual void onVideoSizeChanged(VIDEO_SOURCE_TYPE sourceType, uid_t uid, int width, int height, int rotation)
Occurs when the video size or rotation of a specified user changes.
Definition: IAgoraRtcEngine.h:2294
agora::rtc::IRtcEngine::muteRecordingSignal
virtual int muteRecordingSignal(bool mute)=0
Whether to mute the recording signal.
agora::rtc::IRtcEngineEventHandler::onLocalUserRegistered
virtual void onLocalUserRegistered(uid_t uid, const char *userAccount)
Occurs when the local user registers a user account.
Definition: IAgoraRtcEngine.h:3441
agora::rtc::LocalVideoStats::encodedFrameWidth
int encodedFrameWidth
Definition: IAgoraRtcEngine.h:363
agora::rtc::RtcStats
Statistics of a call session.
Definition: AgoraBase.h:2843
agora::rtc::LowlightEnhanceOptions
The low-light enhancement options.
Definition: AgoraBase.h:5889
agora::rtc::IRtcEngine::setVoiceBeautifierParameters
virtual int setVoiceBeautifierParameters(VOICE_BEAUTIFIER_PRESET preset, int param1, int param2)=0
Sets parameters for the preset voice beautifier effects.
agora::rtc::IRtcEngine::muteRemoteAudioStream
virtual int muteRemoteAudioStream(uid_t uid, bool mute)=0
Stops or resumes subscribing to the audio stream of a specified user.
agora::rtc::IRtcEngine::setVideoDenoiserOptions
virtual int setVideoDenoiserOptions(bool enabled, const VideoDenoiserOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets video noise reduction.
agora::rtc::IRtcEngineEventHandler::onSnapshotTaken
virtual void onSnapshotTaken(uid_t uid, const char *filePath, int width, int height, int errCode)
Reports the result of taking a video snapshot.
Definition: IAgoraRtcEngine.h:3132
agora::rtc::IRtcEngine::destroyCustomVideoTrack
virtual int destroyCustomVideoTrack(video_track_id_t video_track_id)=0
Destroys the specified video track.
agora::rtc::IRtcEngine::setVoiceConversionParameters
virtual int setVoiceConversionParameters(VOICE_CONVERSION_PRESET preset, int param1, int param2)=0
agora::rtc::SimulcastConfig::STREAM_LAYER_COUNT_MAX
@ STREAM_LAYER_COUNT_MAX
Definition: AgoraBase.h:2396
agora::rtc::ChannelMediaOptions::publishLipSyncTrack
Optional< bool > publishLipSyncTrack
Definition: IAgoraRtcEngine.h:1417
agora::rtc::IRtcEngineEventHandler::onFirstRemoteVideoFrame
virtual void onFirstRemoteVideoFrame(uid_t uid, int width, int height, int elapsed)
Occurs when the renderer receives the first frame of the remote video.
Definition: IAgoraRtcEngine.h:2412
agora::rtc::IRtcEngine::adjustAudioMixingVolume
virtual int adjustAudioMixingVolume(int volume)=0
Adjusts the volume during audio mixing.
agora::rtc::WatermarkOptions
Watermark image configurations.
Definition: AgoraBase.h:2510
agora::rtc::LocalAudioStats
Local audio statistics.
Definition: AgoraBase.h:4276
agora::rtc::IRtcEngine::setLocalRenderTargetFps
virtual int setLocalRenderTargetFps(VIDEO_SOURCE_TYPE sourceType, int targetFps)=0
Sets the maximum frame rate for rendering local video.
agora::rtc::RecorderStreamInfo
The information about the media streams to be recorded.
Definition: AgoraBase.h:8189
agora::rtc::ChannelMediaOptions::publishThirdScreenTrack
Optional< bool > publishThirdScreenTrack
Definition: IAgoraRtcEngine.h:1329
agora::rtc::IRtcEngineEventHandler::onAudioDeviceVolumeChanged
virtual void onAudioDeviceVolumeChanged(MEDIA_DEVICE_TYPE deviceType, int volume, bool muted)
Reports the volume change of the audio device or app.
Definition: IAgoraRtcEngine.h:3204
agora::rtc::SimulcastConfig
Configure video streams of different quality levels.
Definition: AgoraBase.h:2359
agora::rtc::IRtcEngine::leaveChannel
virtual int leaveChannel()=0
Leaves a channel.
agora::rtc::IRtcEngine::setAudioScenario
virtual int setAudioScenario(AUDIO_SCENARIO_TYPE scenario)=0
Sets audio scenarios.
agora::rtc::IRtcEngine::setClientRole
virtual int setClientRole(CLIENT_ROLE_TYPE role)=0
Sets the client role.
agora::rtc::IRtcEngine::preloadChannel
virtual int preloadChannel(const char *token, const char *channelId, uid_t uid)=0
Preloads a channel with token, channelId, and uid.
agora::rtc::IRtcEngineEventHandler::onClientRoleChanged
virtual void onClientRoleChanged(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions &newRoleOptions)
Occurs when the user role or the audience latency level changes.
Definition: IAgoraRtcEngine.h:3163
agora::rtc::RemoteVideoStats::width
int width
Definition: IAgoraRtcEngine.h:597
agora::rtc::RtcEngineContext::audioScenario
AUDIO_SCENARIO_TYPE audioScenario
Definition: IAgoraRtcEngine.h:4168
agora::rtc::RemoteVideoStats::rendererOutputFrameRate
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:616
agora::rtc::IRtcEngine::setVoiceBeautifierPreset
virtual int setVoiceBeautifierPreset(VOICE_BEAUTIFIER_PRESET preset)=0
Sets a preset voice beautifier effect.
agora::rtc::RemoteVideoStats::decoderInputFrameRate
int decoderInputFrameRate
Definition: IAgoraRtcEngine.h:608
agora::rtc::IRtcEngine::rate
virtual int rate(const char *callId, int rating, const char *description)=0
Allows a user to rate a call after the call ends.
agora::rtc::LocalVideoStats::targetBitrate
int targetBitrate
Definition: IAgoraRtcEngine.h:376
agora::rtc::ChannelMediaOptions::publishSecondaryScreenTrack
Optional< bool > publishSecondaryScreenTrack
Definition: IAgoraRtcEngine.h:1322
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::RemoteAudioStats::qualityChangedReason
int qualityChangedReason
Definition: IAgoraRtcEngine.h:538
agora::rtc::IRtcEngine::getCallId
virtual int getCallId(agora::util::AString &callId)=0
Retrieves the call ID.
agora::rtc::InjectStreamConfig
Definition: IAgoraRtcEngine.h:749
agora::rtc::IRtcEngine::uploadLogFile
virtual int uploadLogFile(agora::util::AString &requestId)=0
agora::rtc::IRtcEngine::startMediaRenderingTracing
virtual int startMediaRenderingTracing()=0
Enables tracing the video frame rendering process.
agora::rtc::CameraCapturerConfiguration::format
VideoFormat format
Definition: IAgoraRtcEngine.h:987
agora::rtc::LocalVideoStats::encodedFrameCount
int encodedFrameCount
Definition: IAgoraRtcEngine.h:394
agora::rtc::PublisherConfiguration::bitrate
int bitrate
Definition: IAgoraRtcEngine.h:829
agora::rtc::ChannelMediaOptions::downlinkMultipathMode
Optional< MultipathMode > downlinkMultipathMode
Definition: IAgoraRtcEngine.h:1555
agora::rtc::LocalVideoStats::regulatedCaptureFrameRate
int regulatedCaptureFrameRate
Definition: IAgoraRtcEngine.h:343
agora::rtc::IRtcEngine::createCustomEncodedVideoTrack
virtual video_track_id_t createCustomEncodedVideoTrack(const SenderOptions &sender_option)=0
agora::rtc::CameraCapturerConfiguration::followEncodeDimensionRatio
Optional< bool > followEncodeDimensionRatio
Definition: IAgoraRtcEngine.h:983
agora::rtc::RtcEngineContext
Configurations for the RtcEngineContext instance.
Definition: IAgoraRtcEngine.h:4136
agora::rtc::IRtcEngine::unloadAllEffects
virtual int unloadAllEffects()=0
Releases a specified preloaded audio effect from the memory.
agora::rtc::ChannelMediaOptions
The channel media options.
Definition: IAgoraRtcEngine.h:1259
agora::rtc::IVideoEffectObject
Provides methods to manage and configure video effects, such as beauty, style makeup,...
Definition: IAgoraRtcEngine.h:3918
agora::rtc::IRtcEngine
Definition: IAgoraRtcEngine.h:4661
agora::rtc::IRtcEngine::setClientRole
virtual int setClientRole(CLIENT_ROLE_TYPE role, const ClientRoleOptions &options)=0
Sets the user role and the audience latency level in a live streaming scenario.
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
Creates an audio and video recording object.
agora::rtc::IRtcEngine::addVideoWatermark
virtual int addVideoWatermark(const WatermarkConfig &configs)=0
Adds a watermark image to the local video.
agora::rtc::ScreenCaptureConfiguration
The configuration of the captured screen.
Definition: IAgoraRtcEngine.h:993
agora::rtc::IRtcEngine::setAudioMixingDualMonoMode
virtual int setAudioMixingDualMonoMode(media::AUDIO_MIXING_DUAL_MONO_MODE mode)=0
Sets the channel mode of the current audio file.
agora::rtc::ChannelMediaOptions::autoSubscribeVideo
Optional< bool > autoSubscribeVideo
Definition: IAgoraRtcEngine.h:1429
agora::rtc::AudioRecordingConfiguration
Recording configurations.
Definition: AgoraBase.h:6968
agora::rtc::IRtcEngine::getEffectCurrentPosition
virtual int getEffectCurrentPosition(int soundId)=0
Retrieves the playback position of the audio effect file.
agora::rtc::ChannelMediaOptions::publishMicrophoneTrack
Optional< bool > publishMicrophoneTrack
Definition: IAgoraRtcEngine.h:1291
agora::rtc::IRtcEngine::updatePreloadChannelToken
virtual int updatePreloadChannelToken(const char *token)=0
Updates the wildcard token for preloading channels.
agora::rtc::IRtcEngine::resumeAudio
virtual int resumeAudio() __deprecated=0
agora::rtc::IRtcEngine::muteLocalAudioStream
virtual int muteLocalAudioStream(bool mute)=0
Stops or resumes publishing the local audio stream.
agora::rtc::IRtcEngine::joinChannelWithUserAccount
virtual int joinChannelWithUserAccount(const char *token, const char *channelId, const char *userAccount)=0
Joins a channel with a User Account and Token.
agora::rtc::IRtcEngine::setChannelProfile
virtual int setChannelProfile(CHANNEL_PROFILE_TYPE profile)=0
Sets the channel profile.
agora::rtc::RemoteVideoStats::frameLossRate
int frameLossRate
Definition: IAgoraRtcEngine.h:620
agora::rtc::VideoDimensions
The video dimension.
Definition: AgoraBase.h:1267
agora::rtc::IRtcEngine::updateDirectCdnStreamingMediaOptions
virtual int updateDirectCdnStreamingMediaOptions(const DirectCdnStreamingMediaOptions &options)=0
agora::rtc::IRtcEngine::setLocalVoicePitch
virtual int setLocalVoicePitch(double pitch)=0
Changes the voice pitch of the local speaker.
agora::rtc::IRtcEngineEventHandler::onTranscodedStreamLayoutInfo
virtual void onTranscodedStreamLayoutInfo(uid_t uid, int width, int height, int layoutCount, const VideoLayout *layoutlist)
Occurs when the local user receives a mixed video stream carrying layout information.
Definition: IAgoraRtcEngine.h:3614
agora::rtc::RemoteVideoStats::height
int height
Definition: IAgoraRtcEngine.h:601
agora::rtc::LocalVideoStats::captureFrameWidth
int captureFrameWidth
Definition: IAgoraRtcEngine.h:333
agora::rtc::IRtcEngine::setAudioEffectPreset
virtual int setAudioEffectPreset(AUDIO_EFFECT_PRESET preset)=0
Sets an SDK preset audio effect.
agora::rtc::IRtcEngine::release
static AGORA_CPP_API void release(RtcEngineReleaseCallback callback=nullptr)
Releases the IRtcEngine instance.
agora::rtc::RtcEngineContext::useExternalEglContext
bool useExternalEglContext
Definition: IAgoraRtcEngine.h:4209
agora::rtc::IRtcEngine::preloadEffect
virtual int preloadEffect(int soundId, const char *filePath, int startPos=0)=0
Preloads a specified audio effect file into the memory.
agora::rtc::RemoteAudioStats::frozenRate
int frozenRate
Definition: IAgoraRtcEngine.h:480
agora::rtc::IRtcEngine::setVideoScenario
virtual int setVideoScenario(VIDEO_APPLICATION_SCENARIO_TYPE scenarioType)=0
Sets video application scenarios.
agora::rtc::RemoteAudioStats::plcCount
uint32_t plcCount
Definition: IAgoraRtcEngine.h:505
agora::rtc::IRtcEngine::stopEchoTest
virtual int stopEchoTest()=0
Stops the audio call test.
agora::rtc::IRtcEngine::startAudioRecording
virtual int startAudioRecording(const char *filePath, AUDIO_RECORDING_QUALITY_TYPE quality)=0
Starts client-side audio recording and sets the recording sample rate.
agora::rtc::IRtcEngine::setLocalVoiceEqualization
virtual int setLocalVoiceEqualization(AUDIO_EQUALIZATION_BAND_FREQUENCY bandFrequency, int bandGain)=0
Sets the local voice equalization effect.
agora::rtc::DirectCdnStreamingMediaOptions::publishMediaPlayerAudioTrack
Optional< bool > publishMediaPlayerAudioTrack
Definition: IAgoraRtcEngine.h:4536
agora::util::CopyableAutoPtr
Definition: AgoraBase.h:157
agora::rtc::IRtcEngine::getNetworkType
virtual int getNetworkType()=0
Gets the type of the local network connection.
agora::rtc::InjectStreamConfig::audioSampleRate
AUDIO_SAMPLE_RATE_TYPE audioSampleRate
Definition: IAgoraRtcEngine.h:773
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:825
agora::rtc::IRtcEngine::resumeEffect
virtual int resumeEffect(int soundId)=0
Resumes playing a specified audio effect.
agora::rtc::PublisherConfiguration::injectStreamUrl
const char * injectStreamUrl
Definition: IAgoraRtcEngine.h:852
agora::rtc::ChannelMediaOptions::publishScreenTrack
Optional< bool > publishScreenTrack
Definition: IAgoraRtcEngine.h:1316
agora::rtc::IRtcEngineEventHandler::onAudioRoutingChanged
virtual void onAudioRoutingChanged(int routing)
Occurs when the local audio route changes.
Definition: IAgoraRtcEngine.h:3264
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
Plays the specified local or online audio effect file.
agora::rtc::InjectStreamConfig::videoBitrate
int videoBitrate
Definition: IAgoraRtcEngine.h:769
agora::rtc::LocalVideoStats::captureBrightnessLevel
CAPTURE_BRIGHTNESS_LEVEL_TYPE captureBrightnessLevel
Definition: IAgoraRtcEngine.h:408
agora::rtc::IRtcEngine::enableVideo
virtual int enableVideo()=0
Enables the video module.
agora::rtc::IRtcEngineEventHandler::onExtensionStoppedWithContext
virtual void onExtensionStoppedWithContext(const ExtensionContext &context)
Occurs when the extension is disabled.
Definition: IAgoraRtcEngine.h:3675
agora::rtc::IRtcEngine::setRemoteUserSpatialAudioParams
virtual int setRemoteUserSpatialAudioParams(uid_t uid, const agora::SpatialAudioParams &params)=0
Sets the spatial audio effect parameters of the remote user.
agora::rtc::IVideoEffectObject::VIDEO_EFFECT_NODE_ID::BEAUTY
@ BEAUTY
agora::rtc::IVideoEffectObject::VIDEO_EFFECT_NODE_ID::STICKER
@ STICKER
agora::rtc::IRtcEngine::setHeadphoneEQParameters
virtual int setHeadphoneEQParameters(int lowGain, int highGain)=0
Sets the low- and high-frequency parameters of the headphone equalizer.
agora::rtc::IVideoEffectObject::removeVideoEffect
virtual int removeVideoEffect(uint32_t nodeId)=0
Removes the video effect with the specified node ID.
agora::rtc::IRtcEngine::getFaceShapeAreaOptions
virtual int getFaceShapeAreaOptions(agora::rtc::FaceShapeAreaOptions::FACE_SHAPE_AREA shapeArea, FaceShapeAreaOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Gets the facial beauty area options.
agora::rtc::IMetadataObserver::UNKNOWN_METADATA
@ UNKNOWN_METADATA
Definition: IAgoraRtcEngine.h:4257
agora::rtc::IRtcEngineEventHandler::onFirstLocalVideoFramePublished
virtual void onFirstLocalVideoFramePublished(VIDEO_SOURCE_TYPE source, int elapsed)
Occurs when the first video frame is published.
Definition: IAgoraRtcEngine.h:2249
agora::rtc::ChannelMediaOptions::preferMultipathType
Optional< MultipathType > preferMultipathType
Definition: IAgoraRtcEngine.h:1562
agora::rtc::IRtcEngine::stopScreenCapture
virtual int stopScreenCapture(VIDEO_SOURCE_TYPE sourceType)=0
Stops screen capture from the specified video source.
agora::rtc::IRtcEngine::updateChannelMediaOptions
virtual int updateChannelMediaOptions(const ChannelMediaOptions &options)=0
Updates the channel media options after joining the channel.
agora::rtc::RemoteAudioStats::numChannels
int numChannels
Definition: IAgoraRtcEngine.h:461
agora::rtc::IRtcEngineEventHandler::onSetRtmFlagResult
virtual void onSetRtmFlagResult(int code)
Definition: IAgoraRtcEngine.h:3705
agora::rtc::IDirectCdnStreamingEventHandler::onDirectCdnStreamingStats
virtual void onDirectCdnStreamingStats(const DirectCdnStreamingStats &stats)
Reports the CDN streaming statistics.
Definition: IAgoraRtcEngine.h:4496
agora::rtc::ChannelMediaOptions::audioDelayMs
Optional< int > audioDelayMs
Definition: IAgoraRtcEngine.h:1467
agora::rtc::IRtcEngine::createDataStream
virtual int createDataStream(int *streamId, const DataStreamConfig &config)=0
Creates a data stream.
agora::rtc::RtcEngineContext::parameters
const char * parameters
Definition: IAgoraRtcEngine.h:4235
agora::rtc::IRtcEngine::initialize
virtual int initialize(const RtcEngineContext &context)=0
Initializes IRtcEngine.
agora::rtc::IRtcEngineEventHandler::onNetworkQuality
virtual void onNetworkQuality(uid_t uid, int txQuality, int rxQuality)
Reports the last mile network quality of each user in the channel.
Definition: IAgoraRtcEngine.h:2155
agora::rtc::IRtcEngine::resumeAudioMixing
virtual int resumeAudioMixing()=0
Resumes playing and mixing the music file.
agora::rtc::ImageTrackOptions
Image configurations.
Definition: IAgoraRtcEngine.h:1224
agora::rtc::IRtcEngine::unloadEffect
virtual int unloadEffect(int soundId)=0
Releases a specified preloaded audio effect from the memory.
agora::rtc::VideoCompositingLayout::Region
Definition: IAgoraRtcEngine.h:671
agora::rtc::IRtcEngine::stopRhythmPlayer
virtual int stopRhythmPlayer()=0
Disables the virtual metronome.
agora::rtc::IRtcEngine::getAudioMixingPlayoutVolume
virtual int getAudioMixingPlayoutVolume()=0
Retrieves the audio mixing volume for local playback.
agora::rtc::IRtcEngine::startLastmileProbeTest
virtual int startLastmileProbeTest(const LastmileProbeConfig &config)=0
Starts the last mile network probe test.
agora::rtc::IRtcEngine::adjustCustomAudioPublishVolume
virtual int adjustCustomAudioPublishVolume(track_id_t trackId, int volume)=0
Adjusts the volume of the custom audio track played remotely.
agora::rtc::IRtcEngineEventHandler::onVideoSubscribeStateChanged
virtual void onVideoSubscribeStateChanged(const char *channel, uid_t uid, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)
Occurs when the video subscribing state changes.
Definition: IAgoraRtcEngine.h:3553
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
Gets detailed information on the extensions.
agora::rtc::ChannelMediaOptions::publishFourthScreenTrack
Optional< bool > publishFourthScreenTrack
Definition: IAgoraRtcEngine.h:1336
agora::rtc::RemoteAudioStats::jitterBufferDelay
int jitterBufferDelay
Definition: IAgoraRtcEngine.h:453
agora::rtc::IRtcEngine::adjustPlaybackSignalVolume
virtual int adjustPlaybackSignalVolume(int volume)=0
Adjusts the playback signal volume of all remote users.
agora::rtc::IRtcEngineEventHandler::onRemoteVideoStateChanged
virtual void onRemoteVideoStateChanged(uid_t uid, REMOTE_VIDEO_STATE state, REMOTE_VIDEO_STATE_REASON reason, int elapsed)
Occurs when the remote video stream state changes.
Definition: IAgoraRtcEngine.h:2389
agora::rtc::IRtcEngine::setExtensionProviderProperty
virtual int setExtensionProviderProperty(const char *provider, const char *key, const char *value)=0
Sets the properties of the extension provider.
agora::rtc::PublisherConfiguration::injectStreamWidth
int injectStreamWidth
Definition: IAgoraRtcEngine.h:846
agora::rtc::ChannelMediaOptions::publishMixedAudioTrack
Optional< bool > publishMixedAudioTrack
Definition: IAgoraRtcEngine.h:1411
agora::rtc::IRtcEngine::startLocalAudioMixer
virtual int startLocalAudioMixer(const LocalAudioMixerConfiguration &config)=0
Starts local audio mixing.
agora::rtc::RemoteVideoStats::rxStreamType
VIDEO_STREAM_TYPE rxStreamType
Definition: IAgoraRtcEngine.h:628
agora::rtc::IRtcEngine::enableAudio
virtual int enableAudio()=0
Enables the audio module.
agora::rtc::IVideoDeviceManager::stopDeviceTest
virtual int stopDeviceTest()=0
agora::rtc::IMetadataObserver::Metadata::uid
unsigned int uid
Definition: IAgoraRtcEngine.h:4287
agora::rtc::RemoteAudioStats::uid
uid_t uid
Definition: IAgoraRtcEngine.h:439
agora::rtc::IRtcEngine::disableVideo
virtual int disableVideo()=0
Disables the video module.
agora::rtc::IRtcEngine::enableDualStreamMode
virtual int enableDualStreamMode(bool enabled) __deprecated=0
Enables or disables dual-stream mode on the sender side.
agora::rtc::InjectStreamConfig::videoGop
int videoGop
Definition: IAgoraRtcEngine.h:761
agora::rtc::IRtcEngine::setVideoQoEPreference
virtual int setVideoQoEPreference(VIDEO_QOE_PREFERENCE_TYPE qoePreference)=0
agora::rtc::ChannelMediaOptions::isInteractiveAudience
Optional< bool > isInteractiveAudience
Definition: IAgoraRtcEngine.h:1511
agora::rtc::FaceShapeAreaOptions
Filter effect options.
Definition: AgoraBase.h:5590
agora::SpatialAudioParams
The spatial audio parameters.
Definition: AgoraBase.h:8303
agora::rtc::LocalVideoStats::encodedFrameDepth
int encodedFrameDepth
Definition: IAgoraRtcEngine.h:428
agora::rtc::IRtcEngine::setLogFilter
virtual int setLogFilter(unsigned int filter)=0
Sets the log output level of the SDK.
agora::rtc::IRtcEngine::getLoopbackRecordingVolume
virtual int getLoopbackRecordingVolume()=0
agora::rtc::IRtcEngineEventHandler::onPermissionError
virtual void onPermissionError(PERMISSION_TYPE permissionType)
Occurs when the SDK cannot get the device permission.
Definition: IAgoraRtcEngine.h:3415
agora::rtc::IRtcEngineEventHandler::onUploadLogResult
virtual void onUploadLogResult(const char *requestId, bool success, UPLOAD_ERROR_REASON reason)
Definition: IAgoraRtcEngine.h:3519
agora::rtc::RemoteAudioStats::qoeQuality
int qoeQuality
Definition: IAgoraRtcEngine.h:533
agora::rtc::IRtcEngine::setFaceShapeAreaOptions
virtual int setFaceShapeAreaOptions(const FaceShapeAreaOptions &options, agora::media::MEDIA_SOURCE_TYPE type=agora::media::PRIMARY_CAMERA_SOURCE)=0
Sets the image enhancement options for facial areas and specifies the media source.
agora::rtc::IRtcEngine::setHeadphoneEQPreset
virtual int setHeadphoneEQPreset(HEADPHONE_EQUALIZER_PRESET preset)=0
Sets the preset headphone equalization effect.
agora::rtc::IRtcEngine::startCameraCapture
virtual int startCameraCapture(VIDEO_SOURCE_TYPE sourceType, const CameraCapturerConfiguration &config)=0
Starts camera capture.
agora::rtc::IRtcEngine::setLocalAccessPoint
virtual int setLocalAccessPoint(const LocalAccessPointConfiguration &config)=0
Configures the connection to Agora's Private Media Server access module.
agora::rtc::IRtcEngineEventHandler::onRdtStateChanged
virtual void onRdtStateChanged(uid_t userId, RdtState state)
Occurs when the RDT tunnel state changed.
Definition: IAgoraRtcEngine.h:2897
agora::rtc::IRtcEngine::createCustomVideoTrack
virtual video_track_id_t createCustomVideoTrack()=0
Creates a custom video track.
agora::rtc::IRtcEngine::disableAudio
virtual int disableAudio()=0
Disables the audio module.
agora::rtc::IRtcEngine::muteAllRemoteAudioStreams
virtual int muteAllRemoteAudioStreams(bool mute)=0
Stops or resumes subscribing to the audio streams of all remote users.
agora::rtc::IRtcEngineEventHandler::onRtcStats
virtual void onRtcStats(const RtcStats &stats)
Reports the statistics about the current call.
Definition: IAgoraRtcEngine.h:2040
agora::rtc::IRtcEngineEventHandler::onUserJoined
virtual void onUserJoined(uid_t uid, int elapsed)
Occurs when a remote user (in the communication profile)/ host (in the live streaming profile) joins ...
Definition: IAgoraRtcEngine.h:2443
agora::rtc::AAudioDeviceManager
Definition: IAgoraRtcEngine.h:12592
agora::rtc::IMetadataObserver::Metadata
Media metadata.
Definition: IAgoraRtcEngine.h:4277
agora::rtc::IRtcEngine::sendCustomReportMessage
virtual int sendCustomReportMessage(const char *id, const char *category, const char *event, const char *label, int value)=0
Reports customized messages.
agora::rtc::FocalLengthInfo
Focal length information supported by the camera, including the camera direction and focal length typ...
Definition: AgoraBase.h:2144
agora::rtc::RemoteVideoStats::packetLossRate
int packetLossRate
Definition: IAgoraRtcEngine.h:624
agora::rtc::LocalVideoStats::hwEncoderAccelerating
int hwEncoderAccelerating
Definition: IAgoraRtcEngine.h:418
agora::rtc::DeviceInfo
The audio device information.
Definition: AgoraBase.h:4128
agora::rtc::IRtcEngineEventHandler::onMediaControlMessage
virtual void onMediaControlMessage(uid_t userId, const char *data, size_t length)
Occurs when the local user receives media control message sent by a remote user.
Definition: IAgoraRtcEngine.h:2913
agora::base::IEngineBase
Definition: AgoraBase.h:8269
agora::rtc::LocalVideoStats::rendererOutputFrameRate
int rendererOutputFrameRate
Definition: IAgoraRtcEngine.h:371
agora::rtc::DirectCdnStreamingMediaOptions::publishCustomAudioTrack
Optional< bool > publishCustomAudioTrack
Definition: IAgoraRtcEngine.h:4524
agora::rtc::VideoRenderingTracingInfo
Indicators during video frame rendering progress.
Definition: AgoraBase.h:7965
agora::rtc::IRtcEngineEventHandler::onAudioMixingStateChanged
virtual void onAudioMixingStateChanged(AUDIO_MIXING_STATE_TYPE state, AUDIO_MIXING_REASON_TYPE reason)
Occurs when the playback state of the music file changes.
Definition: IAgoraRtcEngine.h:2753
agora::rtc::IRtcEngine::setLocalRenderMode
virtual int setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode, VIDEO_MIRROR_MODE_TYPE mirrorMode)=0
Updates the display mode of the local video view.
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
Sets the audio profile and audio scenario.
agora::rtc::RtcEngineContext::areaCode
unsigned int areaCode
Definition: IAgoraRtcEngine.h:4174
agora::rtc::IRtcEngine::setSimulcastConfig
virtual int setSimulcastConfig(const SimulcastConfig &simulcastConfig)=0
Sets the simulcast video stream configuration.
agora::rtc::IRtcEngineEventHandler::onLicenseValidationFailure
virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error)
Definition: IAgoraRtcEngine.h:2967
agora::rtc::CameraCapturerConfiguration
The camera capturer preference.
Definition: IAgoraRtcEngine.h:923
agora::rtc::IMetadataObserver::VIDEO_METADATA
@ VIDEO_METADATA
Definition: IAgoraRtcEngine.h:4261
agora::rtc::IRtcEngine::selectAudioTrack
virtual int selectAudioTrack(int index)=0
Selects the audio track used during playback.
agora::rtc::RemoteVideoStats
Statistics of the remote video stream.
Definition: IAgoraRtcEngine.h:576
agora::rtc::IRtcEngine::startAudioRecording
virtual int startAudioRecording(const char *filePath, int sampleRate, AUDIO_RECORDING_QUALITY_TYPE quality)=0
Starts client-side audio recording and sets the recording sample rate.
agora::rtc::PublisherConfiguration::injectStreamHeight
int injectStreamHeight
Definition: IAgoraRtcEngine.h:849
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
Joins a channel.
agora::rtc::IMetadataObserver::Metadata::size
unsigned int size
Definition: IAgoraRtcEngine.h:4291
agora::rtc::ClientRoleOptions
Setting of user role properties.
Definition: AgoraBase.h:3100
agora::rtc::IRtcEngine::setRecordingAudioFrameParameters
virtual int setRecordingAudioFrameParameters(int sampleRate, int channel, RAW_AUDIO_FRAME_OP_MODE_TYPE mode, int samplesPerCall)=0
Sets the format of the captured raw audio data.
agora::rtc::ScreenCaptureConfiguration::screenRect
Rectangle screenRect
Definition: IAgoraRtcEngine.h:1009
agora::rtc::IRtcEngineEventHandler::onUserEnableLocalVideo
virtual void onUserEnableLocalVideo(uid_t uid, bool enabled) __deprecated
Occurs when a specific remote user enables/disables the local video capturing function.
Definition: IAgoraRtcEngine.h:2566
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)
Occurs when the state of the media stream relay changes.
Definition: IAgoraRtcEngine.h:3276
agora::rtc::IRtcEngine::complain
virtual int complain(const char *callId, const char *description)=0
Allows a user to complain about the call quality after a call ends.
agora::rtc::IRtcEngine::clearVideoWatermarks
virtual int clearVideoWatermarks()=0
Removes the watermark image from the video stream.
agora::rtc::IRtcEngine::stopAudioRecording
virtual int stopAudioRecording()=0
Stops client-side audio recording.
agora::rtc::IRtcEngineEventHandler::onAudioPublishStateChanged
virtual void onAudioPublishStateChanged(const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)
Occurs when the audio publishing state changes.
Definition: IAgoraRtcEngine.h:3570
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:465
agora::rtc::IRtcEngine::startPreview
virtual int startPreview(VIDEO_SOURCE_TYPE sourceType)=0
Enables the local video preview and specifies the video source for the preview.
agora::rtc::VideoCanvas
Attributes of the video canvas object.
Definition: AgoraBase.h:5381
agora::rtc::VideoCompositingLayout::Region::uid
uid_t uid
Definition: IAgoraRtcEngine.h:674
agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged
virtual void onConnectionStateChanged(CONNECTION_STATE_TYPE state, CONNECTION_CHANGED_REASON_TYPE reason)
Occurs when the network connection state changes.
Definition: IAgoraRtcEngine.h:3369
agora::rtc::IVideoEffectObject::getVideoEffectIntParam
virtual int getVideoEffectIntParam(const char *option, const char *key)=0
Retrieves integer parameters in video effects.
agora::rtc::SegmentationProperty
Processing properties for background images.
Definition: AgoraBase.h:6123
agora::rtc::VideoCompositingLayout::Region::x
double x
Definition: IAgoraRtcEngine.h:677