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

feat: Added option to consider ringer mode in Android #2811

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imjihun
Copy link

@imjihun imjihun commented Apr 27, 2024

What

When using the takePhoto function in Android, ringerMode is not applied by default, but is applied when a value is received as an option

If isAppliedRingerMode option is set to true in takePhoto function,
When ringerMode is RINGER_MODE_NORMAL, the shutterSound option is applied.
When the ringer mode is RINGER_MODE_SILENT or RINGER MODE VIBRATE, the shutter Sound option is ignored.

Changes

Tested on

Related issues

Copy link

vercel bot commented Apr 27, 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 Apr 27, 2024 5:31am

@mrousavy
Copy link
Owner

Hey - thank you for your contribution, this is much appreciated. I always prioritize PRs over issues to discuss such things.

In this case, I think the prop can be a bit confusing. The naming, especially combined with the description, isn't very obvious.

I think that the current behaviour is perfectly fine - it is exactly how it is on iOS. When the phone is on silent, we don't want any sound.
What is your use-case that you need shutter sound anyways? Is that really what users expect to happen?

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.

None yet

2 participants