Sending Sound to Bluetooth Speaker, IOS

I want to add a feature to my app where the user can choose to play audio on a bluetooth enabled speaker. I have a Parrot Easydrive in my car and it works for phonecalls and for example the Dictafoon app among others.

I understand that I have to use a core Core Audio environment. When a Bluetooth device is connected, it is said to be easy to stream audio to that connection. Now I'm looking for a Core Audio code sample (or book) that explains connecting and streaming to a Bluetooth device with Core Audio.

Can anyone shed some light on this? If there is another framework or example code I can use, please include it!

Thank you very much in advance!

+2


source to share


1 answer


You are not writing any specific Core Audio code, this is the same process used to play audio over AirPlay.



Basically you put MPVolumeView in your UI and the underlying framework redirects your audio output for you. Once you've done that, you can use Bluetooth and any AirPlay-enabled device with your app.

+6


source







All Articles