使用UIImagePickerController录制时如何静音麦克风? [英] How to mute mic while Recording using UIImagePickerController?

查看:152
本文介绍了使用UIImagePickerController录制时如何静音麦克风?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用UIImagePickerController在我的应用程序中录制视频。我已经成功录制了视频。但现在我想在录制视频时静音麦克风(没有音频的视频)。
我搜索了很多但没有一个关于它的线索。
请帮我解决这个问题。
是否有可能。如果可能的话。
提前感谢。

I am using UIImagePickerController for recording video in one of my application. i have successfully Recorded video. But now i want to mute mic (video without audio) while recording video. i have searched Alot but not a single clue about it. please help me about this issue. is it possible or not. if possible than how. thanks in advance.

推荐答案

如果你想让你的应用程序在应用程序商店中,那么就没有苹果批准实际上将整个iPhone静音的方法。某些库但它们未被批准。

If you want your app to be in app store , then there is no apple approved method to actually mute whole iPhone.There are certain libraries but they are not approved.

Apple关于音频会话的文档

根据文档你只能要求用户让手机静音,你可以响应某些音频变化,如其他声音,电话,电子邮件声音,但你不能以编程方式静音。

According to the documentation you can only ask the user to have the phone silenced physically and you can respond to certain audio changes such as other sounds,phone calls, email sounds but you cannot mute programmatically.

另请参阅此有关iPhone编程的文档请参阅3.3部分了解音频。(可在iOS中访问和执行的事件)。

Also See this Documentation on Programming in iPhone See the part 3.3 for Audio.(Events that can be accessed and performed in iOS).

这篇关于使用UIImagePickerController录制时如何静音麦克风?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆