AVAudioRecorder and AirPlay Mirrioring

别等时光非礼了梦想. 提交于 2020-01-04 08:06:07

问题


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:

  • using a lower level recording framework
  • or outputting a separate window to external display, rather than mirroring (I've tried this, it doesn't work).

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


回答1:


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.



来源:https://stackoverflow.com/questions/15080029/avaudiorecorder-and-airplay-mirrioring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!