AVAudioRecorder和AirPlay Mirrioring [英] AVAudioRecorder and AirPlay Mirrioring

查看:365
本文介绍了AVAudioRecorder和AirPlay Mirrioring的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我有一个AVAudioRecorder会话活动 - (当我录制音频),我不能激活AirPlay镜像在设备上。 Airplay镜像仅在应用程序运行时停用,并在应用程序退出时重新打开。这则讯息似乎暗示没有办法解决这个问题



我的想法是尝试:





p>有另一种方法,或者你知道这些方法是否已知工作?

解决方案

使用AudioQueue记录(像Apple的示例代码在此对讲)而不是AVRecorder工作。多一些工作要实现,但记录继续或关闭Airplay镜像。


When I have an AVAudioRecorder Session active - (when I'm recording audio) I can't activate AirPlay mirroring on the device. Airplay mirroring just deactivates while the app is running and switches it back on when the app exits. This post seems to suggest there is no way around this.

My thoughts are to try:

Is there another way around this, or do you know whether either of these methods are known to work?

解决方案

Using AudioQueue to record (like Apple's Sample Code Speak Here) rather than the AVRecorder works. A bit more work to implement, but recording continues on or off Airplay mirroring.

这篇关于AVAudioRecorder和AirPlay Mirrioring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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