Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
agora_service_i.h
1//
2// Agora Media SDK
3//
4// Created by Sting Feng in 2015-05.
5// Copyright (c) 2015 Agora IO. All rights reserved.
6//
7#pragma once
8
9#include <memory>
10#include <string>
11
12#include "AgoraRefPtr.h"
13
14#include "IAgoraService.h"
15#include "IAgoraLog.h"
16
17#include "audio_options_i.h"
18#include "content_inspect_i.h"
19#include "internal/video_device_manager_i.h"
20#include "sync_client_i.h"
21#include "audio_track_i.h"
22#include "video_track_i.h"
23#include "media_node_factory_i.h"
24#include "bitrate_constraints.h"
25#include "media_component/IAudioDeviceManager.h"
26#include "api2/NGIAgoraAudioDeviceManager.h"
27#include "api2/NGIAgoraMediaNode.h"
28#include "api2/NGIAgoraVideoDeviceManager.h"
29#include <functional>
30#include <string>
31#include <api/aosl_ref.h>
32
33namespace agora {
34namespace commons{
35 class io_engine_base;
36}
37namespace rtm {
38struct RtmConfig;
39}
40namespace rtc {
41class AgoraGenericBridge;
42class ConfigSourceAP;
43class IDiagnosticService;
44class ILocalUserEx;
45class IRtcConnection;
46struct RtcConnectionConfigurationEx;
47class IMediaExtensionObserver;
48class XdumpHandler;
49} // namespace rtc
50
51namespace base {
52class IAgoraServiceObserver;
53
54 enum MediaEngineType {
58 MEDIA_ENGINE_WEBRTC,
62 MEDIA_ENGINE_EMPTY,
66 MEDIA_ENGINE_UNKNOWN
67};
68
69 struct AgoraServiceConfigEx : public AgoraServiceConfiguration {
70 MediaEngineType engineType = MEDIA_ENGINE_WEBRTC;
71 const char* deviceId = nullptr;
72 const char* deviceInfo = nullptr;
73 const char* systemInfo = nullptr;
74 const char* configDir = nullptr;
75 const char* dataDir = nullptr;
76 const char* pluginDir = nullptr;
77 const char* shortCountryCode = nullptr;
78 rtc::BitrateConstraints bitrateConstraints;
79 bool apSendRequest = true;
80
81 AgoraServiceConfigEx() {
82 bitrateConstraints.start_bitrate_bps = kDefaultStartBitrateBps;
83 bitrateConstraints.max_bitrate_bps = kDefaultMaxBitrateBps;
84 }
85
86 AgoraServiceConfigEx(const AgoraServiceConfiguration& rhs)
87 : AgoraServiceConfiguration(rhs) {
88 bitrateConstraints.max_bitrate_bps = kDefaultMaxBitrateBps;
89 bitrateConstraints.start_bitrate_bps = kDefaultStartBitrateBps;
90 }
91
92 private:
93 static constexpr int kDefaultMaxBitrateBps = (24 * 10 * 1000 * 95);
94 static constexpr int kDefaultStartBitrateBps = 300000;
95};
96
97
98// full feature definition of rtc engine interface
99 class IAgoraServiceEx : public IAgoraService {
100 public:
101#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
102 using ScreenCaptureType = rtc::IScreenCapturer2;
103#else
104 using ScreenCaptureType = rtc::IScreenCapturer;
105#endif
106 using IAgoraService::initialize;
107 virtual int initialize(const rtm::RtmConfig& rtmCfg) { return 0; }
108 virtual void set_lite_initialized(bool initialized) {}
109 virtual int initializeLLApiInternal(const AgoraServiceConfiguration& config) = 0;
110 virtual int initializeEx(const AgoraServiceConfigEx& context) = 0;
111 virtual agora_refptr<rtc::IRtcConnectionEx> createRtcConnectionEx(
112 const rtc::RtcConnectionConfigurationEx& cfg) = 0;
113
114 virtual int32_t setAudioDumpPath(const char* filePath) = 0;
115
116 virtual rtc::IRtcConnection* getOneRtcConnection(bool admBinded) const = 0;
117
118 virtual void enableStringUid(bool enabled) = 0;
119 virtual bool useStringUid() const = 0;
120 virtual bool externalAudioSinkEnabled() const = 0;
121 virtual rtc::uid_t getUidByUserAccount(const std::string& app_id, const std::string& user_account) const = 0;
122
123 // Register string user account before join channel, this would speed up join channel time.
124 virtual int registerLocalUserAccount(const char* appId, const char* userAccount) = 0;
125
126 virtual rtc::IDiagnosticService *getDiagnosticService() const = 0;
127
128 virtual agora_refptr<rtc::IFileUploaderService> createFileUploadServiceEx(
129 agora_refptr<rtc::IRtcConnection> rtcConnection, const char* appId, media::CONTENT_INSPECT_CLOUD_TYPE cloudType) = 0;
130
131 virtual int releaseEngineResourceLLApiInternal() = 0;
132 virtual int atExitLLApiInternal() = 0;
133 virtual int releaseLLApiInternal() = 0;
134 virtual int setLogFileLLApiInternal(const char* filePath, unsigned int fileSize) = 0;
135 virtual int setLogFilterLLApiInternal(unsigned int filters) = 0;
136 virtual agora_refptr<rtc::IRtcConnectionEx> getRtcConnectionInChannel(const char* name,
137 const user_id_t usrId) = 0;
138 virtual int getConnectionCountsWithChannelId(const char* channelId) = 0;
139#if defined(FEATURE_RTM_SERVICE)
140 virtual rtm::IRtmService* createRtmServiceLLApiInternal() = 0;
141#endif
142 virtual int setAudioSessionPresetLLApiInternal(rtc::AUDIO_SCENARIO_TYPE scenario) = 0;
143 virtual int setAudioSessionConfigurationLLApiInternal(const AudioSessionConfiguration& config) = 0;
144 virtual int getAudioSessionConfigurationLLApiInternal(AudioSessionConfiguration* config) = 0;
145 virtual agora_refptr<rtc::IRtcConnection> createRtcConnectionLLApiInternal( const rtc::RtcConnectionConfiguration& cfg) = 0;
146 virtual agora_refptr<rtc::IRtmpConnection> createRtmpConnectionLLApiInternal(const rtc::RtmpConnectionConfiguration& cfg) = 0;
147 virtual agora_refptr<rtc::ILocalAudioTrackEx> createLocalAudioTrackLLApiInternal() = 0;
148 virtual agora_refptr<rtc::ILocalAudioTrackEx> createLocalMixedAudioTrackLLApiInternal() = 0;
149 virtual agora_refptr<rtc::ILocalAudioTrackEx> createCustomAudioTrackLLApiInternal(agora_refptr<rtc::IAudioPcmDataSender> audioSource) = 0;
150 virtual agora_refptr<rtc::ILocalAudioTrackEx> createDirectCustomAudioTrackLLApiInternal(agora_refptr<rtc::IAudioPcmDataSender> audioSource, bool enableAudioProcessing) = 0;
151 virtual agora_refptr<rtc::ILocalAudioTrackEx> createCustomAudioTrackLLApiInternal(agora_refptr<rtc::IAudioPcmDataSender> audioSource, bool enableAec) = 0;
152 virtual agora_refptr<rtc::ILocalAudioTrackEx> createCustomAudioTrackLLApiInternal(agora_refptr<rtc::IRemoteAudioMixerSource> audioSource) = 0;
153 virtual agora_refptr<rtc::ILocalAudioTrackEx> createCustomAudioTrackLLApiInternal(agora_refptr<rtc::IAudioEncodedFrameSender> audioSource, TMixMode mixMode) = 0;
154 virtual agora_refptr<rtc::ILocalAudioTrackEx> createCustomAudioTrackLLApiInternal(agora_refptr<rtc::IMediaPacketSender> source) = 0;
155 virtual agora_refptr<rtc::ILocalAudioTrackEx> createMediaPlayerAudioTrackLLApiInternal( agora_refptr<rtc::IMediaPlayerSource> playerSource) = 0;
156 virtual agora_refptr<rtc::ILocalAudioTrackEx> createMediaStreamingAudioTrackLLApiInternal(agora_refptr<rtc::IMediaStreamingSource> streamingSource) = 0;
157 virtual agora_refptr<rtc::ILocalAudioTrackEx> createRecordingDeviceAudioTrackLLApiInternal(agora_refptr<rtc::IRecordingDeviceSource> audioSource, bool enableAec, bool overlap) = 0;
158 virtual agora_refptr<rtc::INGAudioDeviceManager> createAudioDeviceManagerLLApiInternal() = 0;
159 virtual agora_refptr<rtc::INGVideoDeviceManagerEx> createVideoDeviceManagerLLApiInternal() = 0;
160 virtual agora_refptr<rtc::IMediaNodeFactoryEx> createMediaNodeFactoryLLApiInternal() = 0;
161 virtual agora_refptr<rtc::ILocalVideoTrackEx> createCameraVideoTrackLLApiInternal(agora_refptr<rtc::ICameraCapturer> videoSource, const char* track_id) = 0;
162
163 virtual agora_refptr<rtc::ILocalVideoTrackEx> createMixedVideoTrackLLApiInternal(agora_refptr<rtc::IVideoMixerSource> videoSource, const char* id) = 0;
164 virtual agora_refptr<rtc::ILocalVideoTrackEx> createTranscodedVideoTrackLLApiInternal(agora_refptr<rtc::IVideoFrameTransceiver> transceiver, const char* id) = 0;
165 virtual agora_refptr<rtc::ILocalVideoTrackEx> createCustomVideoTrackLLApiInternal(agora_refptr<rtc::IVideoFrameSender> videoSource, const char* id) = 0;
166 virtual agora_refptr<rtc::ILocalVideoTrackEx> createCustomVideoTrackLLApiInternal(agora_refptr<rtc::IVideoEncodedImageSender> videoSource, const rtc::SenderOptions& options, const char* id = nullptr) = 0;
167 virtual agora_refptr<rtc::ILocalVideoTrackEx> createCustomVideoTrackLLApiInternal(agora_refptr<rtc::IMediaPacketSender> source, const char* id = nullptr) = 0;
168#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || defined(__OHOS__)
169 virtual agora_refptr<rtc::ILocalVideoTrackEx> createScreenCaptureVideoTrackLLApiInternal(agora_refptr<rtc::IScreenCapturer2> screen) = 0;
170#else
171 virtual agora_refptr<rtc::ILocalVideoTrackEx> createScreenCaptureVideoTrackLLApiInternal(agora_refptr<rtc::IScreenCapturer> screen, const char* id) = 0;
172#endif
173 virtual agora_refptr<rtc::ILocalAudioTrackEx> createScreenCaptureAudioTrackLLApiInternal(agora_refptr<ScreenCaptureType> screen) = 0;
174 virtual agora_refptr<rtc::ILocalVideoTrackEx> createMediaPlayerVideoTrackLLApiInternal(agora_refptr<rtc::IMediaPlayerSource> playerVideoSource, const char* id = nullptr) = 0;
175 virtual agora_refptr<rtc::ILocalVideoTrackEx> createMediaStreamingVideoTrackLLApiInternal(agora_refptr<rtc::IMediaStreamingSource> streamingSource, const char* id = nullptr) = 0;
176 virtual agora_refptr<rtc::IRtmpStreamingService> createRtmpStreamingServiceLLApiInternal(agora_refptr<rtc::IRtcConnection> rtcConnection, const char* appId) = 0;
177 virtual agora_refptr<rtc::IMediaRelayService> createMediaRelayServiceLLApiInternal(agora_refptr<rtc::IRtcConnection> rtcConnection, const char* appId) = 0;
178 virtual agora_refptr<rtc::IAudioDeviceManager> createAudioDeviceManagerComponentLLApiInternal(rtc::IAudioDeviceManagerObserver* observer) = 0;
179 virtual agora_refptr<rtc::IFileUploaderService> createFileUploadServiceLLApiInternal(agora_refptr<rtc::IRtcConnection> rtcConnection, const char* appId) = 0;
180 virtual agora_refptr<ILocalDataChannel> createLocalDataChannelLLApiInternal( const DataChannelConfig& config) = 0;
181 virtual agora_refptr<rtc::IConfigCenter> getConfigCenterLLApiInternal() = 0;
182 virtual agora_refptr<base::ISyncClientEx> createSyncClientLLApiInternal(const SyncConfig& config) = 0;
183 virtual int addExtensionObserverLLApiInternal(agora::agora_refptr<agora::rtc::IMediaExtensionObserver> observer) = 0;
184 virtual int removeExtensionObserverLLApiInternal(agora::agora_refptr<agora::rtc::IMediaExtensionObserver> observer) = 0;
185 virtual const char* getExtensionIdLLApiInternal(const char* provider_name, const char* extension_name) = 0;
186 virtual int enableExtensionLLApiInternal(const char* provider_name, const char* extension_name, const char* track_id, bool auto_enable_on_track) = 0;
187 virtual int disableExtensionLLApiInternal(const char* provider_name, const char* extension_name, const char* track_id) = 0;
196 virtual int startTrace(uint32_t count, uint64_t mask) = 0;
205 virtual int stopTrace(const char* file_path) = 0;
206
226 virtual int setExternalAudioSink(bool enabled, int sampleRate, int channels) = 0;
227
237 virtual int pullPlaybackAudioPcmData(void* payloadData, const rtc::AudioPcmDataInfo& audioFrameInfo) = 0;
238#if defined(ENABLE_MEDIA_PLAYER)
239 virtual aosl_ref_t createRhythmPlayer() = 0;
240
241 virtual int destroyRhythmPlayer(aosl_ref_t ref_id) = 0;
242
243 virtual aosl_ref_t createMediaPlayer(media::base::MEDIA_PLAYER_SOURCE_TYPE type) = 0;
244
245 virtual int destroyMediaPlayer(aosl_ref_t ref_id) = 0;
246#endif
247
248 virtual int unregisterServiceEventObserver(IServiceObserver* observer) = 0;
249
250 virtual commons::io_engine_base* getIoEngine() = 0;
251#if defined(__ANDROID__)
266 virtual int setExternalRemoteEglContext(void* eglContext) = 0;
267#endif
268 protected:
269 virtual ~IAgoraServiceEx() {}
270};
271
272 IAgoraServiceEx* GetService();
273
274} // namespace base
275} // namespace agora
agora::agora_refptr
Definition AgoraRefPtr.h:44
agora::base::IAgoraServiceEx
Definition agora_service_i.h:99
agora::base::IAgoraServiceEx::createFileUploadServiceEx
virtual agora_refptr< rtc::IFileUploaderService > createFileUploadServiceEx(agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId, media::CONTENT_INSPECT_CLOUD_TYPE cloudType)=0
agora::base::IAgoraServiceEx::createMediaStreamingVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createMediaStreamingVideoTrackLLApiInternal(agora_refptr< rtc::IMediaStreamingSource > streamingSource, const char *id=nullptr)=0
agora::base::IAgoraServiceEx::createAudioDeviceManagerComponentLLApiInternal
virtual agora_refptr< rtc::IAudioDeviceManager > createAudioDeviceManagerComponentLLApiInternal(rtc::IAudioDeviceManagerObserver *observer)=0
agora::base::IAgoraServiceEx::set_lite_initialized
virtual void set_lite_initialized(bool initialized)
Definition agora_service_i.h:108
agora::base::IAgoraServiceEx::getConfigCenterLLApiInternal
virtual agora_refptr< rtc::IConfigCenter > getConfigCenterLLApiInternal()=0
agora::base::IAgoraServiceEx::createCustomAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createCustomAudioTrackLLApiInternal(agora_refptr< rtc::IRemoteAudioMixerSource > audioSource)=0
agora::base::IAgoraServiceEx::createScreenCaptureVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createScreenCaptureVideoTrackLLApiInternal(agora_refptr< rtc::IScreenCapturer > screen, const char *id)=0
agora::base::IAgoraServiceEx::releaseLLApiInternal
virtual int releaseLLApiInternal()=0
agora::base::IAgoraServiceEx::pullPlaybackAudioPcmData
virtual int pullPlaybackAudioPcmData(void *payloadData, const rtc::AudioPcmDataInfo &audioFrameInfo)=0
agora::base::IAgoraServiceEx::createSyncClientLLApiInternal
virtual agora_refptr< base::ISyncClientEx > createSyncClientLLApiInternal(const SyncConfig &config)=0
agora::base::IAgoraServiceEx::createTranscodedVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createTranscodedVideoTrackLLApiInternal(agora_refptr< rtc::IVideoFrameTransceiver > transceiver, const char *id)=0
agora::base::IAgoraServiceEx::createMediaPlayer
virtual aosl_ref_t createMediaPlayer(media::base::MEDIA_PLAYER_SOURCE_TYPE type)=0
agora::base::IAgoraServiceEx::createRtcConnectionEx
virtual agora_refptr< rtc::IRtcConnectionEx > createRtcConnectionEx(const rtc::RtcConnectionConfigurationEx &cfg)=0
agora::base::IAgoraServiceEx::createCustomVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createCustomVideoTrackLLApiInternal(agora_refptr< rtc::IVideoFrameSender > videoSource, const char *id)=0
agora::base::IAgoraServiceEx::externalAudioSinkEnabled
virtual bool externalAudioSinkEnabled() const =0
agora::base::IAgoraServiceEx::setExternalRemoteEglContext
virtual int setExternalRemoteEglContext(void *eglContext)=0
agora::base::IAgoraServiceEx::createMediaRelayServiceLLApiInternal
virtual agora_refptr< rtc::IMediaRelayService > createMediaRelayServiceLLApiInternal(agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId)=0
agora::base::IAgoraServiceEx::setLogFileLLApiInternal
virtual int setLogFileLLApiInternal(const char *filePath, unsigned int fileSize)=0
agora::base::IAgoraServiceEx::addExtensionObserverLLApiInternal
virtual int addExtensionObserverLLApiInternal(agora::agora_refptr< agora::rtc::IMediaExtensionObserver > observer)=0
agora::base::IAgoraServiceEx::getUidByUserAccount
virtual rtc::uid_t getUidByUserAccount(const std::string &app_id, const std::string &user_account) const =0
agora::base::IAgoraServiceEx::getRtcConnectionInChannel
virtual agora_refptr< rtc::IRtcConnectionEx > getRtcConnectionInChannel(const char *name, const user_id_t usrId)=0
agora::base::IAgoraServiceEx::createLocalAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createLocalAudioTrackLLApiInternal()=0
agora::base::IAgoraServiceEx::createScreenCaptureAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createScreenCaptureAudioTrackLLApiInternal(agora_refptr< ScreenCaptureType > screen)=0
agora::base::IAgoraServiceEx::createMediaStreamingAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createMediaStreamingAudioTrackLLApiInternal(agora_refptr< rtc::IMediaStreamingSource > streamingSource)=0
agora::base::IAgoraServiceEx::destroyRhythmPlayer
virtual int destroyRhythmPlayer(aosl_ref_t ref_id)=0
agora::base::IAgoraServiceEx::createDirectCustomAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createDirectCustomAudioTrackLLApiInternal(agora_refptr< rtc::IAudioPcmDataSender > audioSource, bool enableAudioProcessing)=0
agora::base::IAgoraServiceEx::createScreenCaptureVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createScreenCaptureVideoTrackLLApiInternal(agora_refptr< rtc::IScreenCapturer2 > screen)=0
agora::base::IAgoraServiceEx::getAudioSessionConfigurationLLApiInternal
virtual int getAudioSessionConfigurationLLApiInternal(AudioSessionConfiguration *config)=0
agora::base::IAgoraServiceEx::disableExtensionLLApiInternal
virtual int disableExtensionLLApiInternal(const char *provider_name, const char *extension_name, const char *track_id)=0
agora::base::IAgoraServiceEx::setAudioSessionConfigurationLLApiInternal
virtual int setAudioSessionConfigurationLLApiInternal(const AudioSessionConfiguration &config)=0
agora::base::IAgoraServiceEx::createCustomAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createCustomAudioTrackLLApiInternal(agora_refptr< rtc::IMediaPacketSender > source)=0
agora::base::IAgoraServiceEx::setExternalAudioSink
virtual int setExternalAudioSink(bool enabled, int sampleRate, int channels)=0
agora::base::IAgoraServiceEx::createRtcConnectionLLApiInternal
virtual agora_refptr< rtc::IRtcConnection > createRtcConnectionLLApiInternal(const rtc::RtcConnectionConfiguration &cfg)=0
agora::base::IAgoraServiceEx::createCustomAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createCustomAudioTrackLLApiInternal(agora_refptr< rtc::IAudioPcmDataSender > audioSource)=0
agora::base::IAgoraServiceEx::useStringUid
virtual bool useStringUid() const =0
agora::base::IAgoraServiceEx::setAudioSessionPresetLLApiInternal
virtual int setAudioSessionPresetLLApiInternal(rtc::AUDIO_SCENARIO_TYPE scenario)=0
agora::base::IAgoraServiceEx::setLogFilterLLApiInternal
virtual int setLogFilterLLApiInternal(unsigned int filters)=0
agora::base::IAgoraServiceEx::createAudioDeviceManagerLLApiInternal
virtual agora_refptr< rtc::INGAudioDeviceManager > createAudioDeviceManagerLLApiInternal()=0
agora::base::IAgoraServiceEx::removeExtensionObserverLLApiInternal
virtual int removeExtensionObserverLLApiInternal(agora::agora_refptr< agora::rtc::IMediaExtensionObserver > observer)=0
agora::base::IAgoraServiceEx::getDiagnosticService
virtual rtc::IDiagnosticService * getDiagnosticService() const =0
agora::base::IAgoraServiceEx::createCustomVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createCustomVideoTrackLLApiInternal(agora_refptr< rtc::IVideoEncodedImageSender > videoSource, const rtc::SenderOptions &options, const char *id=nullptr)=0
agora::base::IAgoraServiceEx::getExtensionIdLLApiInternal
virtual const char * getExtensionIdLLApiInternal(const char *provider_name, const char *extension_name)=0
agora::base::IAgoraServiceEx::~IAgoraServiceEx
virtual ~IAgoraServiceEx()
Definition agora_service_i.h:269
agora::base::IAgoraServiceEx::createLocalMixedAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createLocalMixedAudioTrackLLApiInternal()=0
agora::base::IAgoraServiceEx::createCustomAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createCustomAudioTrackLLApiInternal(agora_refptr< rtc::IAudioPcmDataSender > audioSource, bool enableAec)=0
agora::base::IAgoraServiceEx::releaseEngineResourceLLApiInternal
virtual int releaseEngineResourceLLApiInternal()=0
agora::base::IAgoraServiceEx::createMediaPlayerAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createMediaPlayerAudioTrackLLApiInternal(agora_refptr< rtc::IMediaPlayerSource > playerSource)=0
agora::base::IAgoraServiceEx::createMediaNodeFactoryLLApiInternal
virtual agora_refptr< rtc::IMediaNodeFactoryEx > createMediaNodeFactoryLLApiInternal()=0
agora::base::IAgoraServiceEx::createRtmpConnectionLLApiInternal
virtual agora_refptr< rtc::IRtmpConnection > createRtmpConnectionLLApiInternal(const rtc::RtmpConnectionConfiguration &cfg)=0
agora::base::IAgoraServiceEx::destroyMediaPlayer
virtual int destroyMediaPlayer(aosl_ref_t ref_id)=0
agora::base::IAgoraServiceEx::unregisterServiceEventObserver
virtual int unregisterServiceEventObserver(IServiceObserver *observer)=0
agora::base::IAgoraServiceEx::startTrace
virtual int startTrace(uint32_t count, uint64_t mask)=0
agora::base::IAgoraServiceEx::registerLocalUserAccount
virtual int registerLocalUserAccount(const char *appId, const char *userAccount)=0
agora::base::IAgoraServiceEx::createCustomVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createCustomVideoTrackLLApiInternal(agora_refptr< rtc::IMediaPacketSender > source, const char *id=nullptr)=0
agora::base::IAgoraServiceEx::stopTrace
virtual int stopTrace(const char *file_path)=0
agora::base::IAgoraServiceEx::initializeEx
virtual int initializeEx(const AgoraServiceConfigEx &context)=0
agora::base::IAgoraServiceEx::createRtmpStreamingServiceLLApiInternal
virtual agora_refptr< rtc::IRtmpStreamingService > createRtmpStreamingServiceLLApiInternal(agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId)=0
agora::base::IAgoraServiceEx::createCameraVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createCameraVideoTrackLLApiInternal(agora_refptr< rtc::ICameraCapturer > videoSource, const char *track_id)=0
agora::base::IAgoraServiceEx::createLocalDataChannelLLApiInternal
virtual agora_refptr< ILocalDataChannel > createLocalDataChannelLLApiInternal(const DataChannelConfig &config)=0
agora::base::IAgoraServiceEx::atExitLLApiInternal
virtual int atExitLLApiInternal()=0
agora::base::IAgoraServiceEx::enableStringUid
virtual void enableStringUid(bool enabled)=0
agora::base::IAgoraServiceEx::getOneRtcConnection
virtual rtc::IRtcConnection * getOneRtcConnection(bool admBinded) const =0
agora::base::IAgoraServiceEx::ScreenCaptureType
rtc::IScreenCapturer2 ScreenCaptureType
Definition agora_service_i.h:102
agora::base::IAgoraServiceEx::createMediaPlayerVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createMediaPlayerVideoTrackLLApiInternal(agora_refptr< rtc::IMediaPlayerSource > playerVideoSource, const char *id=nullptr)=0
agora::base::IAgoraServiceEx::createFileUploadServiceLLApiInternal
virtual agora_refptr< rtc::IFileUploaderService > createFileUploadServiceLLApiInternal(agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId)=0
agora::base::IAgoraServiceEx::createVideoDeviceManagerLLApiInternal
virtual agora_refptr< rtc::INGVideoDeviceManagerEx > createVideoDeviceManagerLLApiInternal()=0
agora::base::IAgoraServiceEx::createRtmServiceLLApiInternal
virtual rtm::IRtmService * createRtmServiceLLApiInternal()=0
agora::base::IAgoraServiceEx::createCustomAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createCustomAudioTrackLLApiInternal(agora_refptr< rtc::IAudioEncodedFrameSender > audioSource, TMixMode mixMode)=0
agora::base::IAgoraServiceEx::createMixedVideoTrackLLApiInternal
virtual agora_refptr< rtc::ILocalVideoTrackEx > createMixedVideoTrackLLApiInternal(agora_refptr< rtc::IVideoMixerSource > videoSource, const char *id)=0
agora::base::IAgoraServiceEx::setAudioDumpPath
virtual int32_t setAudioDumpPath(const char *filePath)=0
agora::base::IAgoraServiceEx::getConnectionCountsWithChannelId
virtual int getConnectionCountsWithChannelId(const char *channelId)=0
agora::base::IAgoraServiceEx::createRhythmPlayer
virtual aosl_ref_t createRhythmPlayer()=0
agora::base::IAgoraServiceEx::initializeLLApiInternal
virtual int initializeLLApiInternal(const AgoraServiceConfiguration &config)=0
agora::base::IAgoraServiceEx::initialize
virtual int initialize(const rtm::RtmConfig &rtmCfg)
Definition agora_service_i.h:107
agora::base::IAgoraServiceEx::enableExtensionLLApiInternal
virtual int enableExtensionLLApiInternal(const char *provider_name, const char *extension_name, const char *track_id, bool auto_enable_on_track)=0
agora::base::IAgoraServiceEx::createRecordingDeviceAudioTrackLLApiInternal
virtual agora_refptr< rtc::ILocalAudioTrackEx > createRecordingDeviceAudioTrackLLApiInternal(agora_refptr< rtc::IRecordingDeviceSource > audioSource, bool enableAec, bool overlap)=0
agora::base::IAgoraServiceEx::getIoEngine
virtual commons::io_engine_base * getIoEngine()=0
agora::base::IAgoraService
Definition IAgoraService.h:413
agora::base::IAgoraService::initialize
virtual int initialize(const AgoraServiceConfiguration &config)=0
agora::base::IServiceObserver
Definition IAgoraService.h:358
agora::rtc::IAudioDeviceManagerObserver
Definition NGIAgoraAudioDeviceManager.h:91
agora::rtc::IDiagnosticService
Definition diagnostic_service_i.h:35
agora::rtc::ILocalUserEx
Definition local_user_i.h:130
agora::rtc::IMediaExtensionObserver
Definition NGIAgoraMediaNode.h:230
agora::rtc::IRtcConnection
Definition NGIAgoraRtcConnection.h:184
agora::rtc::IScreenCapturer2
Definition NGIAgoraScreenCapturer.h:146
agora::rtc::IScreenCapturer
Definition NGIAgoraScreenCapturer.h:19
agora::rtm::IRtmService
Definition IAgoraRtmService.h:637
agora::base
Definition IAgoraService.h:73
agora::base::TMixMode
TMixMode
Definition IAgoraService.h:344
agora::base::MediaEngineType
MediaEngineType
Definition agora_service_i.h:54
agora::base::MEDIA_ENGINE_WEBRTC
@ MEDIA_ENGINE_WEBRTC
Definition agora_service_i.h:58
agora::base::MEDIA_ENGINE_UNKNOWN
@ MEDIA_ENGINE_UNKNOWN
Definition agora_service_i.h:66
agora::base::MEDIA_ENGINE_EMPTY
@ MEDIA_ENGINE_EMPTY
Definition agora_service_i.h:62
agora::base::GetService
IAgoraServiceEx * GetService()
agora::commons
Definition agora_log_i.h:14
agora::media::base::MEDIA_PLAYER_SOURCE_TYPE
MEDIA_PLAYER_SOURCE_TYPE
Definition AgoraMediaBase.h:1216
agora::media::CONTENT_INSPECT_CLOUD_TYPE
CONTENT_INSPECT_CLOUD_TYPE
Definition content_inspect_i.h:35
agora::rtc
Definition AgoraExtensions.h:5
agora::rtc::AUDIO_SCENARIO_TYPE
AUDIO_SCENARIO_TYPE
The audio scenarios.
Definition AgoraBase.h:3123
agora::rtc::uid_t
unsigned int uid_t
Definition AgoraMediaBase.h:28
agora::rtm
Definition IAgoraRtmService.h:14
agora
Definition AgoraAtomicOps.h:21
agora::user_id_t
const char * user_id_t
Definition AgoraBase.h:849
agora::DataChannelConfig
Definition NGIAgoraDataChannel.h:18
agora::base::AgoraServiceConfigEx
Definition agora_service_i.h:69
agora::base::AgoraServiceConfigEx::shortCountryCode
const char * shortCountryCode
Definition agora_service_i.h:77
agora::base::AgoraServiceConfigEx::bitrateConstraints
rtc::BitrateConstraints bitrateConstraints
Definition agora_service_i.h:78
agora::base::AgoraServiceConfigEx::AgoraServiceConfigEx
AgoraServiceConfigEx()
Definition agora_service_i.h:81
agora::base::AgoraServiceConfigEx::configDir
const char * configDir
Definition agora_service_i.h:74
agora::base::AgoraServiceConfigEx::engineType
MediaEngineType engineType
Definition agora_service_i.h:70
agora::base::AgoraServiceConfigEx::AgoraServiceConfigEx
AgoraServiceConfigEx(const AgoraServiceConfiguration &rhs)
Definition agora_service_i.h:86
agora::base::AgoraServiceConfigEx::deviceInfo
const char * deviceInfo
Definition agora_service_i.h:72
agora::base::AgoraServiceConfigEx::dataDir
const char * dataDir
Definition agora_service_i.h:75
agora::base::AgoraServiceConfigEx::apSendRequest
bool apSendRequest
Definition agora_service_i.h:79
agora::base::AgoraServiceConfigEx::pluginDir
const char * pluginDir
Definition agora_service_i.h:76
agora::base::AgoraServiceConfigEx::deviceId
const char * deviceId
Definition agora_service_i.h:71
agora::base::AgoraServiceConfigEx::systemInfo
const char * systemInfo
Definition agora_service_i.h:73
agora::base::AgoraServiceConfiguration
Definition IAgoraService.h:83
agora::base::AgoraServiceConfiguration::AgoraServiceConfiguration
AgoraServiceConfiguration()
Definition IAgoraService.h:168
agora::base::AudioSessionConfiguration
Definition IAgoraService.h:187
agora::base::SyncConfig
Definition NGIAgoraSyncClient.h:79
agora::rtc::AudioPcmDataInfo
Definition AgoraBase.h:1611
agora::rtc::BitrateConstraints
Definition bitrate_constraints.h:20
agora::rtc::RtcConnectionConfigurationEx
Definition rtc_connection_i.h:105
agora::rtc::RtcConnectionConfiguration
Definition NGIAgoraRtcConnection.h:90
agora::rtc::RtmpConnectionConfiguration
Definition NGIAgoraRtmpConnection.h:231
agora::rtc::SenderOptions
Definition AgoraBase.h:1342