Home:ALL Converter>How to configure AVAudioSessionCategoryMultiRoute for playing different audios to built-in speaker and headphones (or bluetooth headphones)?

How to configure AVAudioSessionCategoryMultiRoute for playing different audios to built-in speaker and headphones (or bluetooth headphones)?

Ask Time:2018-01-31T01:29:18         Author:Marjan Shkurda

Json Formatter

I found such info:

Important: The built-in speaker may be used only if no other eligible output ports (USB, HDMI, LineOut) are connected.

https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionBasics/AudioSessionBasics.html

But standard iOS Clock app can use built-in speaker when 3.5 jack headphones connected.

What about bluetooth headphones? Can I send different audio streams to built-in speaker and bluetooth headphones at the same time using AVAudioSessionCategoryMultiRoute?

Author:Marjan Shkurda,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48527264/how-to-configure-avaudiosessioncategorymultiroute-for-playing-different-audios-t
yy