问题
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