Agora C++ API Reference for All Platforms
|
9 #include "AgoraRefPtr.h"
10 #include "NGIAgoraExtensionScreenSource.h"
11 #include "NGIAgoraScreenCapturer.h"
12 #include "api/video/video_content_type.h"
13 #include "api/video/video_frame.h"
14 #include "api/video/video_sink_interface.h"
15 #include "modules/desktop_capture/desktop_capturer.h"
20 class IScreenCaptureObserver;
38 virtual void GetContentType(agora::VideoContentType& type, agora::VideoContentSubType& subtype) {};
40 virtual void SetHighLight(
bool isHighLight,
unsigned int color,
int width) {}
41 virtual void SetVideoQoEPusher(std::weak_ptr<agora::rtc::VideoStatsEventsPusher> pusher) = 0;
43 #if defined(_WIN32) || (defined(__APPLE__) && !TARGET_OS_IPHONE && TARGET_OS_MAC)
47 #if defined(_WIN32) || (defined(__linux__) && !defined(__ANDROID__))
54 #if defined(__ANDROID__)
59 virtual void SetCaptureSource(
bool allow_magnification_api,
bool allow_directx_capturer) {}
60 virtual void GetCaptureSource(
bool& allow_magnification_api,
bool& allow_directx_capturer) {}
67 #if defined(_WIN32) || (defined(WEBRTC_MAC) && !defined(WEBRTC_IOS))
73 #endif // _WIN32 || (WEBRTC_MAC&&!WEBRTC_IOS)
96 #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
97 class AudioPcmDataSinkInterface;
virtual int InitUsingLastRegionSetting()
Definition: screen_capture_i.h:58
virtual void GetContentType(agora::VideoContentType &type, agora::VideoContentSubType &subtype)
Definition: screen_capture_i.h:38
virtual int setFrameRateLLApiInternal(int rate)=0
virtual void GetAllowUseWGC(bool &allow_use_wgc)
Definition: screen_capture_i.h:62
virtual int initWithWindowIdLLApiInternal(view_t windowId, const rtc::Rectangle ®ionRect)=0
virtual int GetCaptureType()=0
virtual void ForcedUsingScreenCapture(bool using_screen_capture)
Definition: screen_capture_i.h:68
Definition: screen_capture_i.h:87
virtual int initWithDisplayIdLLApiInternal(uint32_t displayId, const rtc::Rectangle ®ionRect)=0
virtual void onScreenCaptureStateChanged(IScreenCapturerEx::SCREEN_CAPTURER_STATE state)
Definition: screen_capture_i.h:89
virtual void SetHighLight(bool isHighLight, unsigned int color, int width)
Definition: screen_capture_i.h:40
SCREEN_CAPTURER_STATE
Definition: screen_capture_i.h:24
Definition: AgoraBase.h:2164
@ SCREEN_CAPTURER_STOPPED
Definition: screen_capture_i.h:26
virtual void SetExcludeWindowList(const std::vector< void * > &window_list)=0
void * view_t
Definition: AgoraBase.h:807
virtual int setScreenOrientationLLApiInternal(VIDEO_ORIENTATION orientation)=0
virtual int SetOutputDimensions(VideoDimensions dimension)
Definition: screen_capture_i.h:36
virtual void RegisterCaptureDataCallback(std::weak_ptr<::rtc::VideoSinkInterface< webrtc::VideoFrame >> dataCallback)=0
virtual int unregisterScreenCaptureObserver(IScreenCaptureObserver *observer)
Definition: screen_capture_i.h:77
virtual void deinit()
Definition: screen_capture_i.h:83
virtual bool FocusOnSelectedSource()=0
virtual void SetVideoQoEPusher(std::weak_ptr< agora::rtc::VideoStatsEventsPusher > pusher)=0
virtual int registerScreenCaptureObserver(IScreenCaptureObserver *observer)
Definition: screen_capture_i.h:74
virtual int updateScreenCaptureRegionLLApiInternal(const rtc::Rectangle &rect)=0
Definition: AgoraAtomicOps.h:21
Definition: NGIAgoraExtensionScreenSource.h:94
virtual int setAudioRecordConfigLLApiInternal(int channels, int sampleRate)=0
Definition: NGIAgoraScreenCapturer.h:19
virtual ~IScreenCaptureObserver()
Definition: screen_capture_i.h:93
virtual int CaptureMouseCursor(bool capture)=0
virtual void removePcmDataSink(AudioPcmDataSinkInterface *sink)=0
VIDEO_ORIENTATION
Definition: AgoraBase.h:940
virtual int setFrameRateLLApiInternal(int fps)=0
virtual int updateScreenCaptureRegionLLApiInternal(const rtc::Rectangle ®ionRect)=0
virtual int StopCapture()=0
virtual int initWithMediaProjectionPermissionResultDataLLApiInternal(void *data, const VideoDimensions &dimensions)=0
virtual void GetCaptureSource(bool &allow_magnification_api, bool &allow_directx_capturer)
Definition: screen_capture_i.h:60
virtual void SetCaptureToTexture(bool capture_to_texture)
Definition: screen_capture_i.h:63
virtual void * getScreenCaptureSources(const IScreenCaptureSource::ScreenSourceListOption &option)
Definition: screen_capture_i.h:80
virtual int initWithScreenRectLLApiInternal(const rtc::Rectangle &screenRect, const rtc::Rectangle ®ionRect)=0
virtual void SetVideoQoEPusher(std::weak_ptr< agora::rtc::VideoStatsEventsPusher > pusher)=0
virtual void SetCaptureSource(bool allow_magnification_api, bool allow_directx_capturer)
Definition: screen_capture_i.h:59
virtual int startAudioCapture()=0
Definition: NGIAgoraScreenCapturer.h:146
@ ERR_NOT_SUPPORTED
Definition: AgoraBase.h:477
virtual void deinit()
Definition: screen_capture_i.h:106
virtual void GetCaptureToTexture(bool &capture_to_texture)
Definition: screen_capture_i.h:64
virtual int GetScreenDimensions(VideoDimensions &dimension)=0
virtual int stopAudioCapture()=0
Definition: screen_capture_i.h:98
virtual webrtc::DesktopCapturer::SourceId GetSourceId()=0
virtual int SetContentType(agora::VideoContentSubType type)
Definition: screen_capture_i.h:37
virtual int stopVideoCapture()=0
@ SCREEN_CAPTURER_STARTED
Definition: screen_capture_i.h:25
Definition: screen_capture_i.h:22
virtual ~IScreenCapturerEx()
Definition: screen_capture_i.h:29
Definition: AgoraBase.h:1086
virtual void attachStatsSpace(uint64_t stats_space)
Definition: screen_capture_i.h:84
virtual void attachStatsSpace(uint64_t stats_space)
Definition: screen_capture_i.h:107
virtual int setScreenCaptureDimensionsLLApiInternal(const VideoDimensions &dimensions)=0
virtual void addPcmDataSink(AudioPcmDataSinkInterface *sink)=0
virtual void SetAllowUseWGC(bool allow_use_wgc)
Definition: screen_capture_i.h:61
Definition: video_node_i.h:32
virtual int startVideoCapture()=0
Definition: video_node_i.h:28
virtual int setAudioVolumeLLApiInternal(uint32_t volume)=0
virtual int StartCapture()=0