Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AVAudioSessionCategoryPlayAndRecord with Airplay

My app uses the microphone and outputs audio, so I am setting my Audio Session to the Play and Record Category, but this seems to disable Airplay. If I set the category to Play, Airplay works fine with my output (but obviously the input doesn't work).

I've tried overriding the output route to speaker, in case it needed that to output over Airplay, but no joy.

Any ideas?

like image 945
thf_dave Avatar asked Jul 03 '12 20:07

thf_dave


1 Answers

What AirPlay device are you trying to use? Does it have a microphone?

If not, iOS won't present it as an option when using the PlayAndRecord category, because that device can't play and record. It would show up when using the Play category though.

Also, if the device you are using is a Bluetooth device, have you set AVAudioSessionCategoryOptionAllowBluetooth to YES?

like image 115
Jonathan Arbogast Avatar answered Sep 21 '22 03:09

Jonathan Arbogast