AliyunCameraRecordSource
@interface AliyunCameraRecordSource
: NSObject <AliyunRecordDataSource, AliyunRecordSourceFPS,
AliyunVideoSourceOrientation>
摄像头录制源 API_AVAILABLE(3.22.0)
-
视频输出像素格式 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) AliyunRecordCameraPixelFormat pixelFormat;
-
摄像头采集分辨率 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) AliyunRecordCameraResolution resolution;
-
建议的采集分辨率 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) AliyunRecordCameraResolution suggestResolution;
-
是否支持手电筒 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasTorch;
-
手电筒模式 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) AVCaptureTorchMode torchMode;
-
是否支持闪光灯 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasFlash;
-
闪光灯模式 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) AVCaptureFlashMode flashMode;
-
是否处于镜像模式 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isVideoMirror;
-
使用前置或后置摄像头 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) AVCaptureDevicePosition position;
-
曝光率 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) CGFloat exposureValue;
-
采集方向 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) int orientation;
-
前置摄像头是否支持变焦 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) BOOL isSupportVideoZoomForFront;
-
焦距 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) CGFloat videoZoomFactor;
-
最大焦距 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat videoMaxZoomFactor;
-
初始化 API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (instancetype)initWithPixelFormat:(AliyunRecordCameraPixelFormat)pixelFormat fps:(int)fps;
Parameters
pixelFormat
像素值格式
fps
帧率
-
手动调整焦点 API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)adjustForceWithNormalizedPoint:(CGPoint)focusPoint;
Parameters
focusPoint
焦点位置(归一化)