camera_camera
camera_camera copied to clipboard
Big delay between taking pic and when onFile triggered (focus timeout)
Hello! I'm getting a big delay between the moment the button to take the pic is pressed and the onFile event is triggered (around 3-4 seconds). The apparent issue is that it's trying to auto focus and the focus times out. I'm getting around 200 debug messages regarding to focus, then focusing times out.
55
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 1 | aeState: 1
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
18
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 1 | aeState: 1
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 1 | aeState: 1
120
D/CameraCaptureCallback(32028): CameraCaptureCallback | state: STATE_WAITING_FOCUS | afState: 2 | aeState: 2
Right after I get:
W/CameraCaptureCallback(32028): Focus timeout, moving on with capture
The issue isn't just that. Because while it's trying to focus the user doesn't get any feedback and the experience is weird because the camera keeps going and moving, it feels it didn't take the picture at all. It would be nice to have an event too for when the button is pressed in case this happens so at least a spinner can be shown while processing.
I'm testing on Android, on a Google Pixel 6.
Any help would be appreciated!
i have the same promblem, but i havent found a solution yet
What phone are you testing on @lauritaila?