Camera2 API在Samsung Galaxy J7中不起作用

时间:2019-05-27 03:24:02

标签: android android-camera2 samsung-galaxy

我正在使用this Google Sample代码拍摄照片,该代码在所有手机中都可以使用,但是当我在Samsung galaxy j7 pro中进行测试时,它并未拍摄照片并且没有引发任何异常。

当我使用this sample code录制视频时,它仅录制语音,而不录制视觉图像。有人知道为什么吗?

编辑 它具有android 8.1.0

Camera2 api probe

提供的详细信息
Camera ID: 1
Camera Facing: Front
SupportLevel:LIMITED
Hardware Support Level:LIMITED
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:0
Auto exposure, auto flash:0
Auto exposure, auto flash, red eye reduction:0
AE Lock:1
Manual focus:1
Auto focus:0
Auto focus macro:0
Auto focus continuous picture:0
Auto focus continuous video:0
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: day:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:0
WB: twilight:0
WB: warm fluorescent:0
AWB Lock:1
RawCapture:1
BurstCapture:1
previewSize: 4128 * 3096 (4:3)
previewSize: 4128 * 2322 (16:9)
previewSize: 3264 * 2448 (4:3)
previewSize: 3264 * 1836 (16:9)
previewSize: 3088 * 3088 (1:1)
previewSize: 2048 * 1536 (4:3)
previewSize: 2048 * 1152 (16:9)
previewSize: 1920 * 1080 (16:9)
previewSize: 1440 * 1080 (4:3)
previewSize: 1280 * 720 (16:9)
previewSize: 960 * 720 (4:3)
previewSize: 720 * 480 (3:2)
previewSize: 640 * 480 (4:3)
previewSize: 352 * 288 (11:9)
previewSize: 320 * 240 (4:3)
previewSize: 256 * 144 (16:9)
previewSize: 176 * 144 (11:9)
photoSize: 4128 * 3096 (4:3)
photoSize: 4128 * 2322 (16:9)
photoSize: 3264 * 2448 (4:3)
photoSize: 3264 * 1836 (16:9)
photoSize: 3088 * 3088 (1:1)
photoSize: 2048 * 1536 (4:3)
photoSize: 2048 * 1152 (16:9)
photoSize: 1920 * 1080 (16:9)
photoSize: 1440 * 1080 (4:3)
photoSize: 1280 * 720 (16:9)
photoSize: 960 * 720 (4:3)
photoSize: 720 * 480 (3:2)
photoSize: 640 * 480 (4:3)
photoSize: 352 * 288 (11:9)
photoSize: 320 * 240 (4:3)
photoSize: 256 * 144 (16:9)
photoSize: 176 * 144 (11:9)
videoSize: 4128 * 3096 (4:3)
videoSize: 4128 * 2322 (16:9)
videoSize: 3264 * 2448 (4:3)
videoSize: 3264 * 1836 (16:9)
videoSize: 3088 * 3088 (1:1)
videoSize: 2048 * 1536 (4:3)
videoSize: 2048 * 1152 (16:9)
videoSize: 1920 * 1080 (16:9)
videoSize: 1440 * 1080 (4:3)
videoSize: 1280 * 720 (16:9)
videoSize: 960 * 720 (4:3)
videoSize: 720 * 480 (3:2)
videoSize: 640 * 480 (4:3)
videoSize: 352 * 288 (11:9)
videoSize: 320 * 240 (4:3)
videoSize: 256 * 144 (16:9)
videoSize: 176 * 144 (11:9)

这表示无法捕获

RawCapture:1
BurstCapture:1

那么我如何捕获图像和视频?任何想法

0 个答案:

没有答案