AgoraCameraCapturerConfiguration
摄像头采集配置。
Objective-C
__attribute__((visibility("default"))) @interface AgoraCameraCapturerConfiguration: NSObject
#if TARGET_OS_IOS
@property (assign, nonatomic) AgoraCameraDirection cameraDirection;
#endif
#elif TARGET_OS_MAC
@property (copy, nonatomic) NSString * _Nullable deviceId;
@property(assign, nonatomic) CGSize dimensions;
@property(assign, nonatomic) int frameRate;
@property(assign, nonatomic) BOOL followEncodeDimensionRatio;
@end
deviceId
注意: 该参数仅适用于 macOS 平台。摄像头的 ID。
followEncodeDimensionRatio
是否跟随 setVideoEncoderConfiguration
中设置的视频宽高比:
YES
:(默认) 跟随。SDK 会将采集到的视频按照已设置的视频宽高比进行裁剪,会同步改变本地预览画面、onCaptureVideoFrame
和onPreEncodeVideoFrame
中的视频画面。NO
:不跟随。SDK不改变采集到的视频帧宽高比。