SDK静音相机的快门声

SDK静音相机的快门声

本文介绍了我希望我可以使用iOS SDK静音相机的快门声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我一直试图在iOS SDK中捕获图像时使快门声音静音,但无法做到这一点.有没有可用的任何形式的代码(实际上,我想从我的聊天应用程序中找到一个假人)

Right now I've been trying to mute my shutter sound when capturing an image in iOS SDK but unable to do it.Is there any way of kind of code available for it(Actually, I wanted to trace a fake person from my chat app)

我看过:

  • Muting AVCapture shutter sound on iPhone
  • How to mute the capture sound in AVFoundation?
  • AVFoundation, how to turn off the shutter sound when captureStillImageAsynchronouslyFromConnection?

但是我还没有成功.

推荐答案

否.捕获静止图像时,无法以编程方式使快门声音静音.在大多数地区,以硬件使设备静音(将静音"按钮滑过)会使快门声音静音,但不会全部静音-例如,在日本,由于法律限制,它不会静音.

No. There is no way to programatically mute the shutter sound when capturing a still image. In most territories, muting the device in hardware (sliding the Mute button across) will mute the shutter sound, but not all—in Japan, for example it won't, because of legal restrictions.

这篇关于我希望我可以使用iOS SDK静音相机的快门声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:05