AgoraScreenCaptureParameters2
屏幕共享配置。
Objective-C
__attribute__((visibility("default"))) @interface AgoraScreenCaptureParameters2 : NSObject
@property(assign, nonatomic) BOOL captureAudio;
@property(strong, nonatomic) AgoraScreenAudioParameters* _Nonnull audioParams;
@property(assign, nonatomic) BOOL captureVideo;
@property(strong, nonatomic) AgoraScreenVideoParameters* _Nonnull videoParams;
@end
captureAudio
信息
为提高屏幕共享时采集系统音频的成功率,请确保已调用
setAudioScenario 方法,并将音频场景设置为 AudioScenarioGameStreaming。- YES:采集系统音频。
- NO:(默认)不采集系统音频。
audioParams
共享屏幕流的音频配置。详见 AgoraScreenAudioParameters。
信息
该参数仅在
captureAudio 为 YES 时生效。captureVideo
是否在屏幕共享时采集屏幕画面:
- YES:(默认)采集屏幕。
- NO:不采集屏幕。
videoParams
共享屏幕流的视频配置。详见 AgoraScreenVideoParameters。
信息
该参数仅在
captureVideo 为 YES 时生效。