ios - AVAudioRecorder.pause() 在状态栏中显示红色麦克风图标
问题描述
我正在开发录音机应用程序,我使用 AVAudioRecorder 来录制音频。
https://www.hackingwithswift.com/example-code/media/how-to-record-audio-using-avaudiorecorder
一切正常。为了在应用程序处于后台时录制音频,我启用了“音频”背景模式。现在问题出现了。每当我停止录制时,即使应用程序现在处于前台,它也会在状态栏中显示红色麦克风图标不到 1 秒。 https://imgur.com/a/G9NTL4y
如果我禁用“音频”背景模式,则不会出现。
源代码:https ://github.com/nightbird8n/AudioRecorder
请帮我解决这个问题。谢谢
解决方案
推荐阅读
- sql - 向 Power BI 授予 Azure SQL 权限的最佳方式?
- percentage - 使用GDAL和python计算像素值的统计
- hash - 通用散列的预期界限
- ios - 图像缩放与设备缩放的工作原理
- python - 为什么 concurrent.futures.Future 会引发 asyncio.Future 错误?
- tensorflow - 在 H2O 中部署自定义构建的 TensorFlow 模型
- apache-spark - Spark 执行器无法访问 Kubernetes 集群内的 ignite 节点
- matlab - Using textscan to extract values from a text file
- vba - 如何测试 WinHttpRequest 是否有效或公司安全问题是否导致错误
- sql - Oracle SQL:计算值超过阈值的时间段