我在 Obj-C 中有一个可以调用电话的应用程序,我想在用户按下按钮开始通话时播放声音。 通话时会一直在后台播放声音吗? 如果是这样,我该如何实现?
先谢谢你
最佳答案
在调用运营商电话时绝对无法播放声音。
Sometimes, currently playing audio is interrupted by audio from a different app. On iPhone, for example, an incoming phone call interrupts the current app’s audio for the duration of the call. In a multitasking environment, the frequency of such audio interruptions can be high.
这与拨出电话的行为相同。它会在通话期间中断当前应用程序的音频(播放/录音)。
您可以在这里阅读更多内容:iOS Human Interface Guide
关于iOS - 打电话时在后台播放声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31831318/