Questions tagged [a2dp]

Advanced Audio Distribution Profile (A2DP)

This profile defines how high quality audio (stereo or mono) can be streamed from one device to another over a Bluetooth connection. For example, music can be streamed from a mobile phone, to a wireless headset, hearing aid & cochlear implant streamer, or car audio or from a laptop/desktop to a wireless headset.

Source: Advanced Audio Distribution Profile section of "List of Bluetooth profiles" article on Wikipedia

135 questions
4
votes
2 answers

need idea on sending/receiveing audio over A2DP between android/non-android device

I need to be able to send and receive audio over bluetooth and it seems A2DP is the thing that does this Using the code given here, I managed to get my phone to detect and pair with the remote bluetooth device, then establish an A2DP connection…
user13267
  • 6,871
  • 28
  • 80
  • 138
4
votes
0 answers

Android Intent: detect when Bluetooth A2DP device gets connected (Not whether a2dp routing is active)

How can I tell when a Bluetooth device connects to the phone, whether it's A2DP or not? This tutorial gives a really easy-to-follow guide on listening for Bluetooth connections. I want to use that to determine if any connected Bluetooth device is…
Jodes
  • 14,118
  • 26
  • 97
  • 156
4
votes
1 answer

How to connect to a bluetooth a2dp device?

I am trying to pair an android device running android 4.1 with a a2dp capable audio receiver. I can do that without problems from the bluetooth settings screen but i am struggeling to do it in code. Basically i am able to discover the device but i…
Moritz
  • 10,124
  • 7
  • 51
  • 61
4
votes
0 answers

Can I use an Android App to behave like an Bluetooth A2DP client? e.i. stream music from my phone to an Android tablet

I'd like to write an Android app that will run Tablet that can connect to my phone using A2DP and stream music from the phone. The Android tablet will replace my car's stereo and navigation system. I have already read quite a bit on Android…
3
votes
0 answers

Cant receive AT Commands from Bluetooth Headset

I am trying to receive AT command broadcast from a Bluetooth headset ( samsung made) , it connects just fine , but code below isn't giving anything , what is that I am missing here ? I am basically trying to get battery level of headset Any pointers…
vishal dharankar
  • 7,536
  • 7
  • 57
  • 93
3
votes
1 answer

Qt How to properly connect to a phone programmatically (Bluetooth A2DP, AVRCP, HSP, HFP) in Linux

I am trying to develop an application that uses bluez stack along with pulseaudio and ofono in order to connect to a phone and achieve tasks such as media playback (A2DP), media control (AVRCP), and handsfree-based telephony (HFP). When I connect to…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
3
votes
2 answers

How to disconnect A2DP profile Bluetooth Connection?

I am working on A2DP connection with headset and other Bluetooth device but when I connect Bluetooth device but when I Disconnect but It didn't disconnect with it. My code is: try { Method connect =…
Bhavinkumar Patel
  • 515
  • 1
  • 12
  • 28
3
votes
0 answers

Use Raspberry Pi as a bluetooth "headset"

I is it possible to Connect the Pi Over Bluetooth to a phone and use the Pi as Microphone Input and Audio Output? Thanks in Advance
Chinaedu Onwukwe
  • 437
  • 1
  • 7
  • 20
3
votes
0 answers

What happens if I use AVAudioSessionCategoryOptionAllowBluetoothA2DP and the bluetooth speaker doesn't support A2DP?

I have an app that plays audio (sometimes via bluetooth) via AVAudioSession, I wrote this code if (IOS10ANDMORE) { [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord…
nommis
  • 116
  • 10
3
votes
0 answers

Access A2DP devices from within iOS app

I am currently developing an iOS app using Swift. I want the app to list all of the paired bluetooth classic (or at least the A2DP) devices. Afterwards I want to be able to pick one and connect to it. To pair from within the app would be nice to…
Bee
  • 1,306
  • 2
  • 10
  • 24
3
votes
0 answers

BluetoothA2dp get Audio session ID

I'm using AudioManager for playing songs. I want to combine it with Equalizer. AudioManager manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); int audioSessionId =…
3
votes
0 answers

Android-Bluetooth: How to connect with bluetooth to a A2DP Profile to stream music over the speaker?

I want to connect from my phone to a bluetooth module with a A2DP profile. And then I want that the speaker of this module plays the music which I have on my phone. I tried this example: A2DP Bluetooth Example But when I run it, it gives me the…
silvia_aut
  • 1,481
  • 6
  • 19
  • 33
3
votes
1 answer

How to connect A2DP from mobile to sink device programmatically?

I have to connect A2DP from mobile to a sink device programmatically on android 2.3.3 I know a Mac address and a name of the sink device and I am going to use them. But I could not find any apis to do that.
yong
  • 63
  • 1
  • 5
3
votes
1 answer

Creating our own A2DP profile using java

Many of us have used bluetooth headset/earphones or alike devices having in-built programmed A2DP (advanced audio directing profile) so that they can recieve streaming audio from a standard device. But I wanted to design (code and implement) my own…
2
votes
0 answers

AudioManager.isBluetoothScoOn returns wrong value

I don’t have much knowledge about Bluetooth. As android documentation lacks details I'm really confused about this. I'm trying to route a webRTC call to a Bluetooth headset. By calling am.startBluetoothSco() I can route the audio to the BT headset…
Sujith S Manjavana
  • 1,417
  • 6
  • 33
  • 60
1 2
3
8 9