How to mute mic while Recording using UIImagePickerController?

不想你离开。 提交于 2019-12-02 03:29:10

问题


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.


回答1:


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's documentation on Audio Session

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.

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




回答2:


You can use AVFoundation framework to record a video without the sound, check at this :

AVFoundation Programming Guide



来源:https://stackoverflow.com/questions/10795162/how-to-mute-mic-while-recording-using-uiimagepickercontroller

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