--
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 on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/8927406f-65d1-421f-bb31-d0c732117b47n%40android.com.
// bind without use cases to get the camera instance without opening it. Camera camera = mCameraProvider.bindToLifecycle(this, mCurrentCameraSelector);
Camera2CameraInfo camera2CameraInfo = Camera2CameraInfo.from(camera.getCameraInfo());
Camera2CameraControl camera2CameraControl = Camera2CameraControl.from(camera.getCameraControl());
// get supported fps ranges list.
Range<Integer>[] fpsRangeList =
camera2CameraInfo.getCameraCharacteristic(CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES);
// Set the target FPS by some range which is in the supported fps ranges list.
camera2CameraControl.setCaptureRequestOptions(
new CaptureRequestOptions.Builder().setCaptureRequestOption(
CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange/* select from fpsRangeList */).build());
// bind again with use cases to open camera
mCamera = mCameraProvider.bindToLifecycle(this, mCurrentCameraSelector, preview, imageAnalysis, imageCapture);
How long is "camera" supported on the new phones?