Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
NGIAgoraRtcConnection.h
1//
2// Agora SDK
3//
4// Created by Sting Feng in 2018-01.
5// Copyright (c) 2018 Agora.io. All rights reserved.
6//
7
8#pragma once // NOLINT(build/header_guard)
9
10#include "AgoraBase.h"
11#include "time_utils.h"
12#include <api/cpp/aosl_ares_class.h>
13
14 namespace agora {
15 namespace rtc {
16 class IAudioEncodedFrameSender;
17 class IRtcConnectionObserver;
18 class INetworkObserver;
19 class IRtcConnection;
20 class IVideoEncodedImageSender;
21 class ILocalUser;
22
26 struct TConnectionInfo {
30 conn_id_t id;
34 util::AString channelId;
38 CONNECTION_STATE_TYPE state;
42 util::AString localUserId;
46 uid_t internalUid;
47
48 int proxyType;
49
50 util::AString connectionIp;
51
52 TConnectionInfo() : id(-1), state(CONNECTION_STATE_DISCONNECTED), internalUid(0), proxyType(0) {}
53};
54
55 struct TConnectSettings {
59 const char* token;
70 const char* channelId;
76 user_id_t userId;
77 /*Reserved for future use*/
78 const char* info;
79 /*
80 App can provide a app defined start time to trace some events like connect cost , first video, etc.
81 */
82 agora::Optional<int64_t> appDefinedStartTimeMs;
83};
84
90 struct RtcConnectionConfiguration {
96 bool autoSubscribeAudio;
102 bool autoSubscribeVideo;
108 bool enableAudioRecordingOrPlayout;
112 int maxSendBitrate;
116 int minPort;
120 int maxPort;
124 CLIENT_ROLE_TYPE clientRoleType;
127 CHANNEL_PROFILE_TYPE channelProfile;
128
132 bool audioRecvEncodedFrame;
133
137 bool audioRecvMediaPacket;
138
142 bool videoRecvMediaPacket;
143
151 bool isInteractiveAudience;
152
156 bool isDataChannelOnly;
157
158 RtcConnectionConfiguration()
159 : autoSubscribeAudio(true),
160 autoSubscribeVideo(true),
161 enableAudioRecordingOrPlayout(true),
162 maxSendBitrate(-1),
163 minPort(0),
164 maxPort(0),
165 clientRoleType(CLIENT_ROLE_AUDIENCE),
166 channelProfile(CHANNEL_PROFILE_LIVE_BROADCASTING),
167 audioRecvEncodedFrame(false),
168 audioRecvMediaPacket(false),
169 videoRecvMediaPacket(false),
170 isInteractiveAudience(false),
171 isDataChannelOnly(false) {}
172};
173
184 class IRtcConnection : public RefCountInterface {
185 protected:
186 ~IRtcConnection() {}
187
188 public:
216 virtual int connect(const char* token, const char* channelId, const char* info, user_id_t userId, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
217
229 virtual int connect(const TConnectSettings& settings, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
230
242 virtual int disconnect(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
243
271 virtual int startLastmileProbeTest(const LastmileProbeConfig& config, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
272
279 virtual int stopLastmileProbeTest(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
280
290 virtual int renewToken(const char* token, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
291
299 virtual TConnectionInfo getConnectionInfo() = 0;
300
308 virtual ILocalUser* getLocalUser() = 0;
309
322 virtual int getRemoteUsers(UserList& users) = 0;
323
334 virtual int getUserInfo(user_id_t userId, agora::UserInfo& userInfo) = 0;
335
344 virtual int registerObserver(IRtcConnectionObserver* observer, void(*safeDeleter)(IRtcConnectionObserver*) = NULL, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
345
355 virtual int unregisterObserver(IRtcConnectionObserver* observer) = 0;
356
365 virtual int registerNetworkObserver(INetworkObserver* observer, void(*safeDeleter)(INetworkObserver*) = NULL, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
366
376 virtual int unregisterNetworkObserver(INetworkObserver* observer) = 0;
377
385 virtual conn_id_t getConnId() = 0;
386
394 virtual RtcStats getTransportStats() = 0;
395
403 virtual agora::base::IAgoraParameter* getAgoraParameter() = 0;
404
424 virtual int createDataStream(int* streamId, bool reliable, bool ordered, bool sync) = 0;
425
441 virtual int sendStreamMessage(int streamId, const char* data, size_t length, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
442
461 virtual int enableEncryption(bool enabled, const EncryptionConfig& config, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
462
476 virtual int sendCustomReportMessage(const char* id, const char* category, const char* event, const char* label, int value, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
488 virtual int getUserInfoByUserAccount(const char* userAccount, rtc::UserInfo* userInfo) = 0;
500 virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo* userInfo) = 0;
501
514 virtual int enableMultipath(bool enable, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
515
528 virtual int setUplinkMultipathMode(MultipathMode mode, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
529
542 virtual int setDownlinkMultipathMode(MultipathMode mode, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
543
556 virtual int setPreferMultipathType(MultipathType type, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
557};
558
562 class IRtcConnectionObserver {
563 public:
564 virtual ~IRtcConnectionObserver() {}
565
572 virtual void onConnected(const TConnectionInfo& connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason) = 0;
573
580 virtual void onDisconnected(const TConnectionInfo& connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason) = 0;
581
588 virtual void onConnecting(const TConnectionInfo& connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason) = 0;
589
596 virtual void onReconnecting(const TConnectionInfo& connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason) = 0;
597
598 // This should be deleted. onConnected is enough.
599 virtual void onReconnected(const TConnectionInfo& connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason) = 0;
600
606 virtual void onConnectionLost(const TConnectionInfo& connectionInfo) = 0;
607
615 virtual void onLastmileQuality(const QUALITY_TYPE quality) = 0;
616
624 virtual void onLastmileProbeResult(const LastmileProbeResult& result) = 0;
625
636 virtual void onTokenPrivilegeWillExpire(const char* token) = 0;
637
644 virtual void onTokenPrivilegeDidExpire() = 0;
645
652 virtual void onConnectionFailure(const TConnectionInfo& connectionInfo,
653 CONNECTION_CHANGED_REASON_TYPE reason) = 0;
654
662 virtual void onUserJoined(user_id_t userId) = 0;
663
672 virtual void onUserLeft(user_id_t userId, USER_OFFLINE_REASON_TYPE reason) = 0;
673
681 virtual void onTransportStats(const RtcStats& stats) = 0;
682
690 virtual void onChangeRoleSuccess(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions& newRoleOptions) {
691 (void)oldRole;
692 (void)newRole;
693 (void)newRoleOptions;
694 }
695
699 virtual void onChangeRoleFailure(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole) {
700 (void)reason;
701 (void)currentRole;
702 }
703
710 virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error) {
711 (void)error;
712 }
713
724 virtual void onUserNetworkQuality(user_id_t userId, QUALITY_TYPE txQuality,
725 QUALITY_TYPE rxQuality) {
726 (void)userId;
727 (void)txQuality;
728 (void)rxQuality;
729 }
730
734 virtual void onNetworkTypeChanged(NETWORK_TYPE type) {
735 (void)type;
736 }
737
739 virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result) { (void)result; }
752 virtual void onSnapshotTaken(user_id_t userId, const char* filePath, int width, int height, int errCode) {
753 (void)userId;
754 (void)filePath;
755 (void)width;
756 (void)height;
757 (void)errCode;
758 }
759
764 virtual void onError(ERROR_CODE_TYPE error, const char* msg) {
765 (void)error;
766 (void)msg;
767 }
768
798 virtual void onChannelMediaRelayStateChanged(int state, int code) = 0;
799
805 virtual void onLocalUserRegistered(uid_t uid, const char* userAccount) {
806 (void)uid;
807 (void)userAccount;
808 }
809
811 virtual void onUserAccountUpdated(uid_t uid, const char* userAccount) {
812 (void)uid;
813 (void)userAccount;
814 }
815
825 virtual void onStreamMessageError(user_id_t userId, int streamId, int code, int missed,
826 int cached) {
827 (void)userId;
828 (void)streamId;
829 (void)code;
830 (void)missed;
831 (void)cached;
832 }
833
838 virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType) {
839 (void)errorType;
840 }
841
847 virtual void onUploadLogResult(const char* requestId, bool success, UPLOAD_ERROR_REASON reason) {
848 (void)requestId;
849 (void)success;
850 (void)reason;
851 }
852
858 virtual void onSetRtmFlagResult(int code) {
859 (void)code;
860 }
861
867 virtual void onMultipathStats(const MultipathStats& stats) {
868 (void)stats;
869 }
870
877 virtual void onWlAccMessage(WLACC_MESSAGE_REASON reason, WLACC_SUGGEST_ACTION action, const char* wlAccMsg) {
878 (void)reason;
879 (void)action;
880 (void)wlAccMsg;
881 }
882
888 virtual void onWlAccStats(const WlAccStats& currentStats, const WlAccStats& averageStats) {
889 (void)currentStats;
890 (void)averageStats;
891 }
892};
893
894 class INetworkObserver {
895 public:
896 virtual ~INetworkObserver() {}
897
898 public:
907 virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo& info) {
908 (void)info;
909 }
910
918 virtual void onDownlinkNetworkInfoUpdated(const DownlinkNetworkInfo& info) {
919 (void)info;
920 }
921};
922
923} // namespace rtc
924} // namespace agora
agora::Optional
Definition AgoraOptional.h:413
agora::RefCountInterface
Definition AgoraRefPtr.h:31
agora::base::IAgoraParameter
Definition IAgoraParameter.h:147
agora::rtc::IAudioEncodedFrameSender
Definition NGIAgoraMediaNode.h:565
agora::rtc::ILocalUser
Definition NGIAgoraLocalUser.h:56
agora::rtc::INetworkObserver
Definition NGIAgoraRtcConnection.h:894
agora::rtc::INetworkObserver::onDownlinkNetworkInfoUpdated
virtual void onDownlinkNetworkInfoUpdated(const DownlinkNetworkInfo &info)
Definition NGIAgoraRtcConnection.h:918
agora::rtc::INetworkObserver::onUplinkNetworkInfoUpdated
virtual void onUplinkNetworkInfoUpdated(const UplinkNetworkInfo &info)
Definition NGIAgoraRtcConnection.h:907
agora::rtc::INetworkObserver::~INetworkObserver
virtual ~INetworkObserver()
Definition NGIAgoraRtcConnection.h:896
agora::rtc::IRtcConnection
Definition NGIAgoraRtcConnection.h:184
agora::rtc::IRtcConnection::disconnect
virtual int disconnect(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::registerObserver
virtual int registerObserver(IRtcConnectionObserver *observer, void(*safeDeleter)(IRtcConnectionObserver *)=NULL, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::registerNetworkObserver
virtual int registerNetworkObserver(INetworkObserver *observer, void(*safeDeleter)(INetworkObserver *)=NULL, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::setUplinkMultipathMode
virtual int setUplinkMultipathMode(MultipathMode mode, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::connect
virtual int connect(const char *token, const char *channelId, const char *info, user_id_t userId, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::startLastmileProbeTest
virtual int startLastmileProbeTest(const LastmileProbeConfig &config, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::getConnId
virtual conn_id_t getConnId()=0
agora::rtc::IRtcConnection::createDataStream
virtual int createDataStream(int *streamId, bool reliable, bool ordered, bool sync)=0
agora::rtc::IRtcConnection::unregisterNetworkObserver
virtual int unregisterNetworkObserver(INetworkObserver *observer)=0
agora::rtc::IRtcConnection::sendCustomReportMessage
virtual int sendCustomReportMessage(const char *id, const char *category, const char *event, const char *label, int value, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::setPreferMultipathType
virtual int setPreferMultipathType(MultipathType type, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::~IRtcConnection
~IRtcConnection()
Definition NGIAgoraRtcConnection.h:186
agora::rtc::IRtcConnection::setDownlinkMultipathMode
virtual int setDownlinkMultipathMode(MultipathMode mode, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::renewToken
virtual int renewToken(const char *token, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::getUserInfoByUid
virtual int getUserInfoByUid(uid_t uid, rtc::UserInfo *userInfo)=0
agora::rtc::IRtcConnection::getLocalUser
virtual ILocalUser * getLocalUser()=0
agora::rtc::IRtcConnection::sendStreamMessage
virtual int sendStreamMessage(int streamId, const char *data, size_t length, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::getTransportStats
virtual RtcStats getTransportStats()=0
agora::rtc::IRtcConnection::stopLastmileProbeTest
virtual int stopLastmileProbeTest(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::getUserInfoByUserAccount
virtual int getUserInfoByUserAccount(const char *userAccount, rtc::UserInfo *userInfo)=0
agora::rtc::IRtcConnection::getConnectionInfo
virtual TConnectionInfo getConnectionInfo()=0
agora::rtc::IRtcConnection::getRemoteUsers
virtual int getRemoteUsers(UserList &users)=0
agora::rtc::IRtcConnection::getUserInfo
virtual int getUserInfo(user_id_t userId, agora::UserInfo &userInfo)=0
agora::rtc::IRtcConnection::unregisterObserver
virtual int unregisterObserver(IRtcConnectionObserver *observer)=0
agora::rtc::IRtcConnection::getAgoraParameter
virtual agora::base::IAgoraParameter * getAgoraParameter()=0
agora::rtc::IRtcConnection::enableEncryption
virtual int enableEncryption(bool enabled, const EncryptionConfig &config, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::enableMultipath
virtual int enableMultipath(bool enable, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnection::connect
virtual int connect(const TConnectSettings &settings, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IRtcConnectionObserver
Definition NGIAgoraRtcConnection.h:562
agora::rtc::IRtcConnectionObserver::onChannelMediaRelayStateChanged
virtual void onChannelMediaRelayStateChanged(int state, int code)=0
agora::rtc::IRtcConnectionObserver::onWlAccStats
virtual void onWlAccStats(const WlAccStats &currentStats, const WlAccStats &averageStats)
Definition NGIAgoraRtcConnection.h:888
agora::rtc::IRtcConnectionObserver::onUserLeft
virtual void onUserLeft(user_id_t userId, USER_OFFLINE_REASON_TYPE reason)=0
agora::rtc::IRtcConnectionObserver::onConnectionLost
virtual void onConnectionLost(const TConnectionInfo &connectionInfo)=0
agora::rtc::IRtcConnectionObserver::onNetworkTypeChanged
virtual void onNetworkTypeChanged(NETWORK_TYPE type)
Definition NGIAgoraRtcConnection.h:734
agora::rtc::IRtcConnectionObserver::onConnected
virtual void onConnected(const TConnectionInfo &connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason)=0
agora::rtc::IRtcConnectionObserver::onEncryptionError
virtual void onEncryptionError(ENCRYPTION_ERROR_TYPE errorType)
Definition NGIAgoraRtcConnection.h:838
agora::rtc::IRtcConnectionObserver::onLastmileQuality
virtual void onLastmileQuality(const QUALITY_TYPE quality)=0
agora::rtc::IRtcConnectionObserver::onTokenPrivilegeWillExpire
virtual void onTokenPrivilegeWillExpire(const char *token)=0
agora::rtc::IRtcConnectionObserver::onSnapshotTaken
virtual void onSnapshotTaken(user_id_t userId, const char *filePath, int width, int height, int errCode)
snapshot taken callback
Definition NGIAgoraRtcConnection.h:752
agora::rtc::IRtcConnectionObserver::onConnectionFailure
virtual void onConnectionFailure(const TConnectionInfo &connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason)=0
agora::rtc::IRtcConnectionObserver::onError
virtual void onError(ERROR_CODE_TYPE error, const char *msg)
Definition NGIAgoraRtcConnection.h:764
agora::rtc::IRtcConnectionObserver::~IRtcConnectionObserver
virtual ~IRtcConnectionObserver()
Definition NGIAgoraRtcConnection.h:564
agora::rtc::IRtcConnectionObserver::onReconnecting
virtual void onReconnecting(const TConnectionInfo &connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason)=0
agora::rtc::IRtcConnectionObserver::onLicenseValidationFailure
virtual void onLicenseValidationFailure(LICENSE_ERROR_TYPE error)
Definition NGIAgoraRtcConnection.h:710
agora::rtc::IRtcConnectionObserver::onUserAccountUpdated
virtual void onUserAccountUpdated(uid_t uid, const char *userAccount)
Definition NGIAgoraRtcConnection.h:811
agora::rtc::IRtcConnectionObserver::onChangeRoleFailure
virtual void onChangeRoleFailure(CLIENT_ROLE_CHANGE_FAILED_REASON reason, CLIENT_ROLE_TYPE currentRole)
Definition NGIAgoraRtcConnection.h:699
agora::rtc::IRtcConnectionObserver::onContentInspectResult
virtual void onContentInspectResult(media::CONTENT_INSPECT_RESULT result)
Definition NGIAgoraRtcConnection.h:739
agora::rtc::IRtcConnectionObserver::onLastmileProbeResult
virtual void onLastmileProbeResult(const LastmileProbeResult &result)=0
agora::rtc::IRtcConnectionObserver::onLocalUserRegistered
virtual void onLocalUserRegistered(uid_t uid, const char *userAccount)
Definition NGIAgoraRtcConnection.h:805
agora::rtc::IRtcConnectionObserver::onMultipathStats
virtual void onMultipathStats(const MultipathStats &stats)
Definition NGIAgoraRtcConnection.h:867
agora::rtc::IRtcConnectionObserver::onChangeRoleSuccess
virtual void onChangeRoleSuccess(CLIENT_ROLE_TYPE oldRole, CLIENT_ROLE_TYPE newRole, const ClientRoleOptions &newRoleOptions)
Definition NGIAgoraRtcConnection.h:690
agora::rtc::IRtcConnectionObserver::onTransportStats
virtual void onTransportStats(const RtcStats &stats)=0
agora::rtc::IRtcConnectionObserver::onSetRtmFlagResult
virtual void onSetRtmFlagResult(int code)
Definition NGIAgoraRtcConnection.h:858
agora::rtc::IRtcConnectionObserver::onUserNetworkQuality
virtual void onUserNetworkQuality(user_id_t userId, QUALITY_TYPE txQuality, QUALITY_TYPE rxQuality)
Definition NGIAgoraRtcConnection.h:724
agora::rtc::IRtcConnectionObserver::onReconnected
virtual void onReconnected(const TConnectionInfo &connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason)=0
agora::rtc::IRtcConnectionObserver::onTokenPrivilegeDidExpire
virtual void onTokenPrivilegeDidExpire()=0
agora::rtc::IRtcConnectionObserver::onUploadLogResult
virtual void onUploadLogResult(const char *requestId, bool success, UPLOAD_ERROR_REASON reason)
Definition NGIAgoraRtcConnection.h:847
agora::rtc::IRtcConnectionObserver::onWlAccMessage
virtual void onWlAccMessage(WLACC_MESSAGE_REASON reason, WLACC_SUGGEST_ACTION action, const char *wlAccMsg)
Definition NGIAgoraRtcConnection.h:877
agora::rtc::IRtcConnectionObserver::onUserJoined
virtual void onUserJoined(user_id_t userId)=0
agora::rtc::IRtcConnectionObserver::onDisconnected
virtual void onDisconnected(const TConnectionInfo &connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason)=0
agora::rtc::IRtcConnectionObserver::onStreamMessageError
virtual void onStreamMessageError(user_id_t userId, int streamId, int code, int missed, int cached)
Definition NGIAgoraRtcConnection.h:825
agora::rtc::IRtcConnectionObserver::onConnecting
virtual void onConnecting(const TConnectionInfo &connectionInfo, CONNECTION_CHANGED_REASON_TYPE reason)=0
agora::rtc::IVideoEncodedImageSender
Definition NGIAgoraMediaNode.h:758
agora::media::CONTENT_INSPECT_RESULT
CONTENT_INSPECT_RESULT
Definition AgoraMediaBase.h:1154
agora::rtc
Definition AgoraExtensionVersion.h:12
agora::rtc::CONNECTION_CHANGED_REASON_TYPE
CONNECTION_CHANGED_REASON_TYPE
Definition AgoraBase.h:4548
agora::rtc::ENCRYPTION_ERROR_TYPE
ENCRYPTION_ERROR_TYPE
Definition AgoraBase.h:6702
agora::rtc::CLIENT_ROLE_TYPE
CLIENT_ROLE_TYPE
Definition AgoraBase.h:2627
agora::rtc::CLIENT_ROLE_AUDIENCE
@ CLIENT_ROLE_AUDIENCE
Definition AgoraBase.h:2635
agora::rtc::CONNECTION_STATE_TYPE
CONNECTION_STATE_TYPE
Definition AgoraBase.h:3981
agora::rtc::CONNECTION_STATE_DISCONNECTED
@ CONNECTION_STATE_DISCONNECTED
Definition AgoraBase.h:3988
agora::rtc::WLACC_MESSAGE_REASON
WLACC_MESSAGE_REASON
Definition AgoraBase.h:4693
agora::rtc::USER_OFFLINE_REASON_TYPE
USER_OFFLINE_REASON_TYPE
Definition AgoraBase.h:853
agora::rtc::MultipathMode
MultipathMode
Defines how data is transmitted across multiple network paths.
Definition AgoraBase.h:2322
agora::rtc::MultipathType
MultipathType
Defines the types of network paths used in multipath transmission.
Definition AgoraBase.h:2338
agora::rtc::CLIENT_ROLE_CHANGE_FAILED_REASON
CLIENT_ROLE_CHANGE_FAILED_REASON
Definition AgoraBase.h:4669
agora::rtc::NETWORK_TYPE
NETWORK_TYPE
Definition AgoraBase.h:4749
agora::rtc::uid_t
unsigned int uid_t
Definition AgoraMediaBase.h:28
agora::rtc::conn_id_t
unsigned int conn_id_t
Definition AgoraMediaBase.h:30
agora::rtc::UPLOAD_ERROR_REASON
UPLOAD_ERROR_REASON
Definition AgoraBase.h:6727
agora::rtc::WLACC_SUGGEST_ACTION
WLACC_SUGGEST_ACTION
Definition AgoraBase.h:4707
agora::rtc::QUALITY_TYPE
QUALITY_TYPE
Definition AgoraBase.h:890
agora::util::AString
CopyableAutoPtr< IString > AString
Definition AgoraBase.h:182
agora
Definition AgoraAtomicOps.h:21
agora::UserList
util::AList< UserInfo > UserList
Definition AgoraBase.h:845
agora::user_id_t
const char * user_id_t
Definition AgoraBase.h:818
agora::ERROR_CODE_TYPE
ERROR_CODE_TYPE
Definition AgoraBase.h:460
agora::CHANNEL_PROFILE_TYPE
CHANNEL_PROFILE_TYPE
Definition AgoraBase.h:267
agora::CHANNEL_PROFILE_LIVE_BROADCASTING
@ CHANNEL_PROFILE_LIVE_BROADCASTING
Definition AgoraBase.h:279
agora::LICENSE_ERROR_TYPE
LICENSE_ERROR_TYPE
Definition AgoraBase.h:763
agora::UserInfo
Definition AgoraBase.h:824
agora::rtc::ClientRoleOptions
Definition AgoraBase.h:2675
agora::rtc::DownlinkNetworkInfo
Definition AgoraBase.h:6488
agora::rtc::EncryptionConfig
Definition AgoraBase.h:6642
agora::rtc::LastmileProbeConfig
Definition AgoraBase.h:4454
agora::rtc::LastmileProbeResult
Definition AgoraBase.h:4524
agora::rtc::MultipathStats
Aggregates statistics for all network paths used in multipath transmission.
Definition AgoraBase.h:2381
agora::rtc::RtcConnectionConfiguration::autoSubscribeAudio
bool autoSubscribeAudio
Definition NGIAgoraRtcConnection.h:96
agora::rtc::RtcConnectionConfiguration::audioRecvMediaPacket
bool audioRecvMediaPacket
Definition NGIAgoraRtcConnection.h:137
agora::rtc::RtcConnectionConfiguration::RtcConnectionConfiguration
RtcConnectionConfiguration()
Definition NGIAgoraRtcConnection.h:158
agora::rtc::RtcConnectionConfiguration::clientRoleType
CLIENT_ROLE_TYPE clientRoleType
Definition NGIAgoraRtcConnection.h:124
agora::rtc::RtcConnectionConfiguration::isDataChannelOnly
bool isDataChannelOnly
Definition NGIAgoraRtcConnection.h:156
agora::rtc::RtcConnectionConfiguration::maxSendBitrate
int maxSendBitrate
Definition NGIAgoraRtcConnection.h:112
agora::rtc::RtcConnectionConfiguration::maxPort
int maxPort
Definition NGIAgoraRtcConnection.h:120
agora::rtc::RtcConnectionConfiguration::channelProfile
CHANNEL_PROFILE_TYPE channelProfile
Definition NGIAgoraRtcConnection.h:127
agora::rtc::RtcConnectionConfiguration::minPort
int minPort
Definition NGIAgoraRtcConnection.h:116
agora::rtc::RtcConnectionConfiguration::videoRecvMediaPacket
bool videoRecvMediaPacket
Definition NGIAgoraRtcConnection.h:142
agora::rtc::RtcConnectionConfiguration::isInteractiveAudience
bool isInteractiveAudience
Definition NGIAgoraRtcConnection.h:151
agora::rtc::RtcConnectionConfiguration::enableAudioRecordingOrPlayout
bool enableAudioRecordingOrPlayout
Definition NGIAgoraRtcConnection.h:108
agora::rtc::RtcConnectionConfiguration::audioRecvEncodedFrame
bool audioRecvEncodedFrame
Definition NGIAgoraRtcConnection.h:132
agora::rtc::RtcConnectionConfiguration::autoSubscribeVideo
bool autoSubscribeVideo
Definition NGIAgoraRtcConnection.h:102
agora::rtc::RtcStats
Definition AgoraBase.h:2428
agora::rtc::TConnectSettings
Definition NGIAgoraRtcConnection.h:55
agora::rtc::TConnectSettings::token
const char * token
Definition NGIAgoraRtcConnection.h:59
agora::rtc::TConnectSettings::appDefinedStartTimeMs
agora::Optional< int64_t > appDefinedStartTimeMs
Definition NGIAgoraRtcConnection.h:82
agora::rtc::TConnectSettings::info
const char * info
Definition NGIAgoraRtcConnection.h:78
agora::rtc::TConnectSettings::channelId
const char * channelId
Definition NGIAgoraRtcConnection.h:70
agora::rtc::TConnectSettings::userId
user_id_t userId
Definition NGIAgoraRtcConnection.h:76
agora::rtc::TConnectionInfo
Definition NGIAgoraRtcConnection.h:26
agora::rtc::TConnectionInfo::connectionIp
util::AString connectionIp
Definition NGIAgoraRtcConnection.h:50
agora::rtc::TConnectionInfo::TConnectionInfo
TConnectionInfo()
Definition NGIAgoraRtcConnection.h:52
agora::rtc::TConnectionInfo::id
conn_id_t id
Definition NGIAgoraRtcConnection.h:30
agora::rtc::TConnectionInfo::localUserId
util::AString localUserId
Definition NGIAgoraRtcConnection.h:42
agora::rtc::TConnectionInfo::proxyType
int proxyType
Definition NGIAgoraRtcConnection.h:48
agora::rtc::TConnectionInfo::internalUid
uid_t internalUid
Definition NGIAgoraRtcConnection.h:46
agora::rtc::TConnectionInfo::state
CONNECTION_STATE_TYPE state
Definition NGIAgoraRtcConnection.h:38
agora::rtc::TConnectionInfo::channelId
util::AString channelId
Definition NGIAgoraRtcConnection.h:34
agora::rtc::UplinkNetworkInfo
Definition AgoraBase.h:6475
agora::rtc::UserInfo
Definition AgoraBase.h:6835
agora::rtc::WlAccStats
Definition AgoraBase.h:4731