Quentin Hébert
unread,Apr 29, 2022, 6:47:58 AM4/29/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android CameraX Discussion Group, scot...@google.com, shetty...@gmail.com, Android CameraX Discussion Group, etal...@google.com
Hello Mohit, Eddy and Scott,
After seeing your conversation, I've looked into the camera2
onCaptureStarted / onCaptureCompleted callbacks that can be accessed though the Camera2Interop class.
It seems to me that the
CONTROL_CAPTURE_INTENT key that can be retrieved on the CaptureRequest / CaptureResult in these callbacks has a different value following if the callback is called for a capture or for a preview frame (
CONTROL_CAPTURE_INTENT_STILL_CAPTURE or CONTROL_CAPTURE_INTENT_PREVIEW).
Could this be used in the meantime, until a more appropriate API is available, to determine when the image gets captured ? Or is there some cases / devices where this solution would not work ?
Thanks,
Quentin