|
virtual int | initialize (const AgoraServiceConfiguration &config)=0 |
|
virtual int | atExit (aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual int | release ()=0 |
|
virtual int | setAudioSessionPreset (agora::rtc::AUDIO_SCENARIO_TYPE scenario, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual int | setAudioSessionConfiguration (const AudioSessionConfiguration &config, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual int | getAudioSessionConfiguration (AudioSessionConfiguration *config)=0 |
|
virtual int | setLogFile (const char *filePath, unsigned int fileSize, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual int | setLogFilter (unsigned int filters, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual agora_refptr< rtc::IRtcConnection > | createRtcConnection (const rtc::RtcConnectionConfiguration &cfg)=0 |
|
virtual agora_refptr< rtc::IRtmpConnection > | createRtmpConnection (const rtc::RtmpConnectionConfiguration &cfg)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createLocalAudioTrack ()=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createLocalMixedAudioTrack ()=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createCustomAudioTrack (agora_refptr< rtc::IAudioPcmDataSender > audioSource)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createDirectCustomAudioTrack (agora_refptr< rtc::IAudioPcmDataSender > audioSource)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createCustomAudioTrack (agora_refptr< rtc::IAudioPcmDataSender > audioSource, bool enableAec)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createCustomAudioTrack (agora_refptr< rtc::IRemoteAudioMixerSource > audioSource)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createCustomAudioTrack (agora_refptr< rtc::IAudioEncodedFrameSender > audioSource, TMixMode mixMode)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createCustomAudioTrack (agora_refptr< rtc::IMediaPacketSender > source)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createMediaPlayerAudioTrack (agora_refptr< rtc::IMediaPlayerSource > audioSource)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createMediaStreamingAudioTrack (agora_refptr< rtc::IMediaStreamingSource > streamingSource)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createRecordingDeviceAudioTrack (agora_refptr< rtc::IRecordingDeviceSource > audioSource, bool enableAec, bool overlap)=0 |
|
virtual agora_refptr< rtc::INGAudioDeviceManager > | createAudioDeviceManager ()=0 |
|
virtual agora_refptr< rtc::IMediaNodeFactory > | createMediaNodeFactory ()=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createCameraVideoTrack (agora_refptr< rtc::ICameraCapturer > videoSource, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createMixedVideoTrack (agora_refptr< rtc::IVideoMixerSource > videoSource, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createTranscodedVideoTrack (agora_refptr< rtc::IVideoFrameTransceiver > transceiver, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createCustomVideoTrack (agora_refptr< rtc::IVideoFrameSender > videoSource, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createCustomVideoTrack (agora_refptr< rtc::IVideoEncodedImageSender > videoSource, const rtc::SenderOptions &options, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createScreenCaptureVideoTrack (agora_refptr< rtc::IScreenCapturer2 > screen)=0 |
|
virtual agora_refptr< rtc::ILocalAudioTrack > | createScreenCaptureAudioTrack (agora_refptr< rtc::IScreenCapturer2 > screen)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createScreenCaptureVideoTrack (agora_refptr< rtc::IScreenCapturer > screen, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createCustomVideoTrack (agora_refptr< rtc::IMediaPacketSender > source, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createMediaPlayerVideoTrack (agora_refptr< rtc::IMediaPlayerSource > videoSource, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::ILocalVideoTrack > | createMediaStreamingVideoTrack (agora_refptr< rtc::IMediaStreamingSource > streamingSource, const char *id=OPTIONAL_NULLPTR)=0 |
|
virtual agora_refptr< rtc::IRtmpStreamingService > | createRtmpStreamingService (agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId)=0 |
|
virtual agora_refptr< rtc::IMediaRelayService > | createMediaRelayService (agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId)=0 |
|
virtual agora_refptr< rtc::IFileUploaderService > | createFileUploadService (agora_refptr< rtc::IRtcConnection > rtcConnection, const char *appId)=0 |
|
virtual rtm::IRtmService * | createRtmService ()=0 |
|
virtual int | addExtensionObserver (agora::agora_refptr< agora::rtc::IMediaExtensionObserver > observer, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual int | removeExtensionObserver (agora::agora_refptr< agora::rtc::IMediaExtensionObserver > observer, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual agora_refptr< rtc::IAudioDeviceManager > | createAudioDeviceManagerComponent (rtc::IAudioDeviceManagerObserver *observer)=0 |
|
virtual agora_refptr< ILocalDataChannel > | createLocalDataChannel (const DataChannelConfig &config)=0 |
|
virtual const char * | getExtensionId (const char *provider_name, const char *extension_name)=0 |
|
virtual int | loadExtensionProvider (const char *path, bool unload_after_use=false)=0 |
|
virtual int | enableExtension (const char *provider_name, const char *extension_name, const char *track_id=NULL, bool auto_enable_on_track=false, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual int | disableExtension (const char *provider_name, const char *extension_name, const char *track_id=NULL, aosl_ref_t ares=AOSL_REF_INVALID)=0 |
|
virtual agora_refptr< base::IAgoraParameter > | getAgoraParameter ()=0 |
|
virtual agora_refptr< rtc::IConfigCenter > | getConfigCenter ()=0 |
|
virtual agora_refptr< base::ISyncClient > | createSyncClient (const base::SyncConfig &config)=0 |
|
virtual int32_t | setLogWriter (agora::commons::ILogWriter *logWriter)=0 |
|
virtual agora::commons::ILogWriter * | releaseLogWriter ()=0 |
|
The IAgoraService class.
IAgoraService
is the entry point of Agora low-level APIs. Use this interface to create access points to Agora interfaces, including RTC connections and media tracks.
You can create an IAgoraService
object by calling createAgoraService.
You can configure the IAgoraService
object for different user scenarios on the global level by using AgoraServiceConfiguration
.
virtual int agora::base::IAgoraService::setLogFilter |
( |
unsigned int |
filters, |
|
|
aosl_ref_t |
ares = AOSL_REF_INVALID |
|
) |
| |
|
pure virtual |
Sets the SDK log output filter.
The log level follows the sequence of OFF, CRITICAL, ERROR, WARNING, INFO, and DEBUG.
Select a level to output the logs in and above the selected level. For example, if you set the log level to WARNING, you can see the logs in the levels of CRITICAL, ERROR, and WARNING.
- Parameters
-
filters | The log output filter.
LOG_LEVEL_NONE (0x0000) : Do not output any log file.
LOG_LEVEL_INFO (0x0001) : (Recommended) Output log files of the INFO level.
LOG_LEVEL_WARN (0x0002) : Output log files of the WARN level.
LOG_LEVEL_ERROR (0x0004) : Output log files of the ERROR level.
LOG_LEVEL_FATAL (0x0008) : Output log files of the FATAL level.
|
- Returns
- 0: Success.
- < 0: Failure.