Public Member Functions | |
ScreenCaptureParameters () | |
ScreenCaptureParameters (const VideoDimensions &d, int f, int b, bool c, bool focus, view_t *ex=NULL, int cnt=0) | |
ScreenCaptureParameters (int width, int height, int f, int b, bool c, bool focus, view_t *ex=NULL, int cnt=0) | |
Public Attributes | |
VideoDimensions | dimensions |
int | frameRate |
int | bitrate |
bool | captureMouseCursor |
bool | windowFocus |
view_t * | excludeWindowList |
int | excludeWindowCount |
Screen sharing encoding parameters.
|
inline |
|
inline |
|
inline |
VideoDimensions agora::rtc::ScreenCaptureParameters::dimensions |
The maximum encoding dimensions of the shared region in terms of width * height.
The default value is 1920 * 1080 pixels, that is, 2073600 pixels. Agora uses the value of this parameter to calculate the charges.
If the aspect ratio is different between the encoding dimensions and screen dimensions, Agora applies the following algorithms for encoding. Suppose the encoding dimensions are 1920 x 1080:
int agora::rtc::ScreenCaptureParameters::frameRate |
The frame rate (fps) of the shared region.
The default value is 5. We do not recommend setting this to a value greater than 15.
int agora::rtc::ScreenCaptureParameters::bitrate |
The bitrate (Kbps) of the shared region.
The default value is 0 (the SDK works out a bitrate according to the dimensions of the current screen).
bool agora::rtc::ScreenCaptureParameters::captureMouseCursor |
Sets whether or not to capture the mouse for screen sharing:
bool agora::rtc::ScreenCaptureParameters::windowFocus |
Whether to bring the window to the front when calling startScreenCaptureByWindowId to share the window:
view_t* agora::rtc::ScreenCaptureParameters::excludeWindowList |
A list of IDs of windows to be blocked.
When calling startScreenCaptureByScreenRect to start screen sharing, you can use this parameter to block the specified windows. When calling updateScreenCaptureParameters to update the configuration for screen sharing, you can use this parameter to dynamically block the specified windows during screen sharing.
int agora::rtc::ScreenCaptureParameters::excludeWindowCount |
The number of windows to be blocked.