2

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?

Community
  • 1
  • 1
glenstorey
  • 5,134
  • 5
  • 39
  • 71

1 Answers1

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.

glenstorey
  • 5,134
  • 5
  • 39
  • 71
  • The Speak Here example doesn't seem to work with Airplay, it just offers two options for playback: the iPhone (ear) or iPhone external speaker. Did you modify it to work with Airplay? – Jason McDermott Jul 07 '14 at 01:22
  • I don't think so. If you fire up airplay and connect it to an external device while speak here is playing then it'll work fine. AFAIK there isn't a way to specify an airplay output without user intervention. – glenstorey Jul 07 '14 at 04:11