很难说出这里问的是什么。这个问题是模棱两可的、模糊的、不完整的、过于宽泛的或修辞的,无法以目前的形式得到合理的回答。如需帮助澄清这个问题以便重新打开它,visit the help center .
9年前关闭。
如何在其他 iOS
中继续播放音乐当我在我的应用程序中完全录制音频时,应用程序?
最佳答案
如果您将 Audio Session 设置为非事件状态并设置了通知其他人的标志,那么其他应用程序应该重新启动。对于带有 AVAudioSession 的 iOS5,您可以这样做:
[[AVAudioSession sharedInstance] setActive:NO withFlags:AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation error:nil];
请注意,这在 iOS6 中已被弃用并替换为:
[[AVAudioSession sharedInstance] setActive:NO withOptions:AVAudioSessionSetActiveOptionNotifyOthersonDeactivation error:nil];
也将有一个 C 接口(interface)。
关于iphone - 当我在我的应用程序中录制完整的音频时,如何在其他 iOS 应用程序中继续播放音乐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15741450/