OGeek|极客世界-中国程序员成长平台

标题: ios - AVAudioRecorder 和 AirPlay 镜像 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 09:06
标题: ios - AVAudioRecorder 和 AirPlay 镜像

当我激活了 AVAudioRecorder session 时 -(当我正在录制音频时)我无法在设备上激活 AirPlay 镜像。 Airplay 镜像只是在应用程序运行时停用,并在应用程序退出时重新打开。这篇文章似乎建议 there is no way around this .

我的想法是尝试:

有没有其他方法可以解决这个问题,或者您知道这些方法中的任何一种是否有效吗?



Best Answer-推荐答案


使用 AudioQueue 进行录制(如 Apple 的示例代码 Speak Here )而不是 AVRecorder 工作。需要更多的工作来实现,但在 Airplay 镜像上或关闭时继续录制。

关于ios - AVAudioRecorder 和 AirPlay 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15080029/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4