Split audio program in active VoiceChat AVAudioSession to play on AirPlay but record using device

I am creating a video chat application for iPhone. One of the requirements that should work well with AirPlay. When I switch to AirPlay, the video goes to AppleTV, but the sound remains on the phone. The resulting Speaker-and-EmbeddedMicaudio route, and I see no way to switch the audio route to AppleTV (AirPlay)and continue recording using a microphone.

VideoChatmode is NOT active - I could play audio using AppleTV(AirPlay): enter image description here

VideoChat active mode - now I have two output devices - a speaker and a speaker: enter image description here

  • Can I use an output session PlayAndRecordwith the VideoChat mode turned on?
  • What is the possible solution for this?
+4

All Articles