AgoraScreenCaptureConfiguration
屏幕采集配置。
#if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC)) __attribute__((visibility("default"))) @interface AgoraScreenCaptureConfiguration: NSObject @property(assign, nonatomic) BOOL isCaptureWindow; @property(assign, nonatomic) UInt32 displayId; @property(assign, nonatomic) UInt32 windowId; @property(strong, nonatomic) AgoraScreenCaptureParameters* _Nonnull params; @property(assign, nonatomic) CGRect regionRect; @end #endif
属性
- isCaptureWindow
- 是否采集屏幕上的窗口:
YES
:采集窗口。NO
:(默认)采集屏幕,不采集窗口。
- displayId
- 屏幕的 display ID。
注意: 请仅在 Mac 设备上采集屏幕时使用该参数。
- windowId
- 窗口 ID。
注意: 请仅在采集窗口时使用该参数。
- params
- 屏幕共享流的编码参数配置。详见 AgoraScreenCaptureParameters。
- regionRect
- 待共享区域相对于整个屏幕的位置。类型为 CGRect。