ios - 通过电话进行iOS音频播放

标签 ios audio microphone phone-call

我发现了一些有关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/

相关文章:

ios - 在临时分发中加载自定义框架时出错

ios - 如何清除 UIWebView

android - Android:如何合成钢琴声音?

html - 如何让HTML5语音识别不再每次都请求许可

android - 如何在android中调整麦克风音量?

ios - NSAutoreleasepool 是否存在泄漏?

ios - iPhone X 状态栏高度

c# - 使用NAudio混合两个音频文件

android - 发生碰撞时如何停止声音重新启动

android - 为什么在安卓模拟器上无法使用录音机?