--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/b4b7f9b7-85ce-4c2f-a9d5-40a2316c5d2fn%40android.com.
>One last question, can we take picture while we are recording video in dual concurrent mode?
Unfortunately, you can't take pictures in this case. See the guaranteed configurations for concurrent stream below
https://developer.android.com/reference/android/hardware/camera2/CameraDevice#concurrent-stream-guaranteed-configurations As you can see, only two streams are required. So if you are showing preview and recording video, then there are two streams configured already. But there is a workaround, which you can use PreviewView.getBitmap to take a snapshot of preview.
private class DefaultEffect extends CameraEffect {
protected DefaultEffect(int targets, @NonNull Executor executor,
@NonNull Consumer<Throwable> errorListener) {
super(targets, executor, DefaultSurfaceProcessor.Factory.newInstance(DynamicRange.SDR),
errorListener);
}
}
We’ve made a lot of progress since our last update, and everything is working well overall. Thanks for your help. However, we recently discovered an issue. This only happens for concurrent mode.
We’re providing the front image through an OverlayEffect, and we’re only setting the targets to PREVIEW or VIDEO_CAPTURE (Doing this cause of feature requirement where only back camera should appear in image, not both). For some reason, this causes the camera quality to drop to 640x360, and the resulting video is recorded at the same resolution. The use cases provided are image capture and video capture.
The quality selector for the VideoCapture use case is set to HD (720p). Interestingly, when we add the IMAGE_CAPTURE target, we get the expected 1280x720 resolution.