avaudioplayer - iOS: Playing Audio via Bluetooth -


i'm struggling when trying application's audio play via bluetooth.

i have set avaudiosession in appdelegate so:

    avaudiosession.sharedinstance().setcategory(avaudiosessioncategoryplayandrecord, withoptions options: .allowbluetooth) 

however, when have avaudioplayer instance play audio in application while device connected automobile's bluetooth audio system, connects though making cellular connection voice call.

i've read documentation configuring avaudiosession playing audio, have working when not connected bluetooth, i'm still not sure go here.

any suggestions on should looking?

my application simple, , plays audio based on user wants listen to, can combination of audio files being played separate avaudioplayers. there no need audio input device.

you need go "capabilities" tab , make sure have box selected for, "audio, airplay..." "acts/uses bluetooth accessory"


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -