Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix Precapture timed out after 5 seconds error #2586

Merged
merged 9 commits into from
Feb 20, 2024

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Feb 19, 2024

What

Fixes the "Precapture timed out after 5 seconds" error by changing two things:

  1. If AE, AF, or AWB is not supported on the device, remove the unsupported value from the precapture trigger.
  2. If the precapture timed out after 5 seconds, we still take a picture. Might be unfocused, but who cares. (not sure if this is a good idea tbh)

Changes

Tested on

Related issues

Copy link

vercel bot commented Feb 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 1:13pm

@mrousavy mrousavy merged commit 369cb4a into main Feb 20, 2024
5 checks passed
@mrousavy mrousavy deleted the fix/precapture-timeout branch February 20, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Android - Error on taking picture - Precapture timed out after 5 seconds!
1 participant