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 avaudioplayer
s. there no need audio input device.
you need go "capabilities" tab , make sure have box selected for, "audio, airplay..." "acts/uses bluetooth accessory"
Comments
Post a Comment