ScreenCaptureConfiguration
用于设置屏幕采集的相关参数。
C++
struct ScreenCaptureConfiguration {
bool isCaptureWindow;
int64_t displayId;
Rectangle screenRect;
int64_t windowId;
ScreenCaptureParameters params;
Rectangle regionRect;
};
isCaptureWindow
是否采集屏幕上的窗口:
- true:采集窗口。
- false:(默认)采集整个屏幕,而非窗口。
displayId
屏幕的显示 ID。
信息
该参数仅在 macOS 上采集屏幕时生效。
screenRect
共享屏幕相对于虚拟屏幕的位置。详见 Rectangle。
信息
该参数仅在 Windows 上采集屏幕时生效。
windowId
窗口 ID。
信息
该参数仅在采集窗口时生效。
params
屏幕采集配置。详见 ScreenCaptureParameters。