CameraCapturerConfiguration
- React Native
更新时间不可用
摄像头采集配置。
export class CameraCapturerConfiguration {
cameraDirection?: CameraDirection;
cameraFocalLengthType?: CameraFocalLengthType;
deviceId?: string;
cameraId?: string;
format?: VideoFormat;
followEncodeDimensionRatio?: boolean;
}属性
| 参数名 | 描述 |
|---|---|
cameraDirection | (可选)摄像头方向。详见 CameraDirection。 |
cameraId | (可选)摄像头 ID。默认为前置摄像头对应的摄像头 ID。你可以通过 Android 原生系统 API 获取摄像头 ID,详见 Camera.open() 和 CameraManager.getCameraIdList()。 注:
|
cameraFocalLengthType | (可选)摄像头的焦距类型。详见 CameraFocalLengthType。 注:
区别为方式一的超广角大小不可调节,方式二支持自由调节相机的缩放比例。 |
format | (可选)视频帧格式。详见 VideoFormat。 |
followEncodeDimensionRatio | (可选)是否跟随 setVideoEncoderConfiguration 中设置的视频宽高比:
|