在iOS SDK 4.2+上应用程序处于后台时禁用录音通知 [英] Disable audio recording notification while application is in background on iOS SDK 4.2+

查看:215
本文介绍了在iOS SDK 4.2+上应用程序处于后台时禁用录音通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我们使用 pjsip2 从共享服务器接收流媒体音频。

In my project, where we use pjsip2 to receive streaming audio from a shared server.

该应用程序仅用于接收流式音频,而不是录制。
然而,即使我们已经在代码中禁用了麦克风,我们仍会在后台看到应用程序录制的通知(顶部栏中闪烁红色,带有文字:(录制))。

The app is meant to only receive streaming audio, not record. However even though we have disabled the mic in out code we still get a notification of the app recording while it is in the background (top bar flashing red with text: " (recording)").

如何在我们的应用程序在后台运行时禁用录制通知?

How can I disable the recording notification while our app is running in the background?

推荐答案

从信息plist中删除UIBackgroundModes的音频选项

Remove the audio option from info plist for UIBackgroundModes

示例:

<key>UIBackgroundModes</key>
    <string>voip</string>

这篇关于在iOS SDK 4.2+上应用程序处于后台时禁用录音通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆