Muting AVCapture shutter sound on iPhone [duplicate]

▼魔方 西西 提交于 2019-11-27 08:27:36

问题


I'm using the Apple AVCam code with AVCamCaptureManger to capture a still image. I don't display any camera views to the user, the image is just automatically taken behind the scenes without the user's involvement. However, it still plays a shutter sound when I call [captureManger captureStillImage] and I don't want it to play a shutter sound.

There are many apps in the AppStore that "secretly" take a picture without a shutter sound, so I'm sure it's possible to somehow mute this sound. If I can't mute this sound directly, is there anyway to adjust not the volume of the phone, but the volume of my app itself (the output volume of the app)?


回答1:


You have to use an AVCaptureVideoDataOutput if you want to avoid the shutter sound. Note that covertly capturing images is against App Store policy. You need to make sure you user is told in some way that your taking a picture.



来源:https://stackoverflow.com/questions/8621252/muting-avcapture-shutter-sound-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!