iPhone:同时运行 UIImagePickerController 和 AVAudioSession
我有一个永久启用 UIImagePickerController 的应用程序,但我也想访问 AVAudioSession。
但是,当 UIImagePickerController 启动时,AVAudioSession 会收到中断通知。
有没有办法让 AVAudioSession 和 UIImagePickerController 同时运行?
I have an app that has a UIImagePickerController up permanently, but I also want to access AVAudioSession.
However AVAudioSession receives an interuption notification when the UIImagePickerController is launched.
Is there any way to have both an AVAudioSession and a UIImagePickerController running simultanaeouly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要处理音频中断,当中断结束时您需要继续音频播放,
这是如何做的详细信息
http://developer.apple.com/library /ios/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html
You need to handle the audio interruption, and when interruption ends you need to continue your audio playback,
Here is the details that how to do
http://developer.apple.com/library/ios/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html