react-native-vision-camera
react-native-vision-camera copied to clipboard
feat: Allow control of shutter sound on iOS
What
Adds functionality to control whether the shutter sound plays or not on iOS
Changes
- Adds capture setting
disableShutterSound
to prevent shutter sound from playing on iOS - Uses it on the example project
Tested on
- iPhone 13 Pro, iOS 15.5
Related issues
- Fixes #311
@mrousavy can't request you for review, so tagging you here
Hi, thanks for your PR!
One minor thing I'd like to have changed is the inheritance/subclass of PhotoCaptureDelegate
. Could we maybe instead pass enableShutterSound: ___
to the constructor as usual, and handle it in the original class instead of subclassing it?
Thanks!
I'm thinking if it would be better to call it enableShutterSound
instead and have it be true
by default? I'm not a big fan of this whole reverse/disable true logic.
Hey.
Looking forward to this being implemented. Is there any eta?
@wassgha Hey! Since i see no traction on this review, how do you recommend implementing this?
Should I just add your changes verbatim to the project?
Hey @copterisimo , sorry I couldn't find time to finish this PR. It's good as is if you want to fork it, @mrousavy 's comments are mostly about code organization.
Hey thanks for your PR and sorry for the long radio silence here! I added shutter sound in V3.1.0