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
 屏幕共享时是否采集系统音频: 
- YES: 采集系统音频。
- NO: (默认)不采集系统音频。
信息
- 为提高屏幕共享时采集系统音频的成功率,请确保你已调用 setAudioScenario: 方法并设置音频场景为 AgoraAudioScenarioGameStreaming。
audioParams
 共享屏幕流的音频配置。详见 AgoraScreenAudioParameters。 
注意
 该参数仅在 captureAudio 为 
YES 时生效。captureVideo
 屏幕共享时是否采集屏幕: 
- YES:(默认)采集屏幕。
- NO: 不采集屏幕。
videoParams
 共享屏幕流的视频编码配置。详见 AgoraScreenVideoParameters。 
注意
 该参数仅在 captureVideo 为 
YES 时生效。