Camera2的setRecordingHint等价物是什么?
答案 0 :(得分:0)
使用请求模板TEMPLATE_RECORD。
答案 1 :(得分:0)
它应与previewRequest.set相同(CaptureRequest.CONTROL_CAPTURE_INTENT,CameraMetadata.CONTROL_CAPTURE_INTENT_VIDEO_RECORD);
e.g。
CaptureRequest.Builder previewRequest = camera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD);
previewRequest.addTarget(previewSurface);
previewRequest.set(CaptureRequest.CONTROL_CAPTURE_INTENT, CameraMetadata.CONTROL_CAPTURE_INTENT_VIDEO_RECORD);
session.setRepeatingRequest(previewRequest.build(), null, null);