我发现了一些有关Android的相关问题,但没有发现iOS的相关问题。
一旦接到电话并通过电话播放音频文件,是否有任何方法可以覆盖电话的麦克风?如果无法覆盖麦克风,是否可以将音频文件与麦克风混合?
最佳答案
我不相信你可以做你想要的。从苹果的Audio Session Programming Guide:
The system follows the inviolable rule that “the phone always wins.” No app, no matter how vehemently it demands priority, can trump the phone. When a call arrives, the user gets notified and your app is interrupted—no matter what audio operation you have in progress and no matter what category you have set.
如果您考虑一下,这是有道理的:用户不太可能希望意外的音频中断或覆盖电话对话。
关于ios - 通过电话进行iOS音频播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26022968/