I'm building an audio application for iOS in Swift.
Every time I connect my bluetooth earphones, it automatically starts playing music from my Music (iTunes) app. I'm on iOS 14.4.
Is it possible to disable this behavior programatically? Or this behavior is preempted from my specific bluetooth earphones?
Is it related to AVAudioSession.RouteSharingPolicy?
I'm developing application that can play local music as well youtube video and its working fine.
Now I connect my iPhone to bluetooth speaker and i want to calculate audio latency for bluetooth speaker.
How i can get latency for my connected bluetooth device?
Any suggestion or idea or article ?
Thank You.
I am using AVAudioSession for VOIP and sometimes when the app goes to the background or the volume gets adjusted the speaker switches from the earpiece speaker to the main iPhone speakers. It is almost randomly doing this. Trying to figure out what is causing this. Any help would be greatly appreciated.
Thank you!
I want to play the audio which is located in my app to a bluetooth enabled speaker device. How can it be done using the core bluetooth library of ios. Any help will be greatly appreciated. Thanks!
I'm working on an IOS 6 app that's currently in development. The app has about 5-6 snippets of audio that play at various stages, currently when the device is paired with some bluetooth speakers (e.g. in a car) the audio does not play through the speakers.
Does anyone know what's involved with making this app work with paired bluetooth speakers? My initial assumption was that it wouldn't need anything extra done, it would just work. I had thought bluetooth paired speakers worked like as if you'd plugged in speakers directly into the device, all audio was routed through the speakers as long as they were paired.
This doesn't appear to be the case though.
I think you have to place an MPVolumeView somewhere in your interface, and enable the showsRouteButton property, then users can use that button to change the audio route to Bluetooth. You can also disable the showsVolumeSlider property if you don't need the volume slider.