Open minkgkyaw9899 opened 5 months ago
facing same issue
The code only adds a sound if true
, it doesn't remove it if false
if (shutterPhotoSound) {
val audio = getActivity().getSystemService(Context.AUDIO_SERVICE) as AudioManager
if (audio.ringerMode == AudioManager.RINGER_MODE_NORMAL) {
MediaActionSound().play(MediaActionSound.SHUTTER_CLICK)
}
}
You can try to do something along the line of
} else if (camera?.cameraInfo?.canDisableShutterSound == true) {
camera.enableShutterSound(false)
}
Describe the bug In
Camera
component I give shutterPhotoSound props tofalse
value but it not working.To Reproduce
Expected behavior I want to fix
shutterPhotoSound
props is working wellScreenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I have been tested in other phone like Samsung note 10+ and also same issues.