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
0
votes
0 answers

Disconnecting bluetooth a2dp device keeps connection for calls (real problem: it keeps auto reconnecting)

I am trying to add bluetooth cast functionality for player app. I am connecting to paired bluetooth speaker. Bluetooth manager I get like this : private val bluetoothManager by lazy { …
SirBzik
  • 1
  • 1
  • 1
0
votes
0 answers

How to disconnect the bound bluetooth device in Android

I can use the following code to unbind, but how do I simply perform disconnection? val pair = device.javaClass.getMethod("removeBond") pair.isAccessible = true pair.invoke(device) I use this connection function to connect my headset. val…
Joe199382
  • 199
  • 1
  • 12
0
votes
0 answers

Bluetooth (A2DP) Auto Re-Connection issue with android and Jetson nano using Bluez 5.63

I have configured Bluetooth a2dp profile and automated the connection Process in linux using bluez and the bash script, making sure the device is already paired Bluetoothctl<< agent NoInputNoOutput trust connect quit It works and I am able to…
0
votes
0 answers

Creating an android app that acts as an A2DP sink for other devices to stream media to

I have an old phone that I am trying to repurpose by making it into a bluetooth receiver for audio + a Google Assistant voice search device. Its a Moto G1 2013 (XT1033) running Android 5.1.1 I want to create an app that makes the phone receive audio…
0
votes
0 answers

Bluetooth remote music control (VLC from Phone to Car Android System) [A2DP/AVRCP?]

TLDR: Stream music from one Android to another Android device via bluetooth, remote controlling VLC or foobar2k or another app on source Android, displaying play/pause/nex/prev button and track name, which app (besides that one that came with my car…
stucks
  • 1
  • 1
0
votes
0 answers

Use Android 10 device as A2DP Sink

The device currently functions as a A2DP source, which is the exact opposite of what I'm trying to achieve. What are the steps necessary to do that? Any relevant tips are appreciated as well. I have the source code for Android 10 (AOSP) for my…
Amin Sameti
  • 89
  • 2
  • 2
0
votes
1 answer

How to combine XT_DAC_Audio and A2DP BT-Sink on an ESP32?

I am trying to combine two libraries on an ESP32. I can run each of them alone, but not together. I want to make a BT-Speaker as a Gift for my gf. I want the speaker to play an Audio-file and afterwards run the BT-Sink. But everytime I try to enable…
tranceonline
  • 11
  • 1
  • 4
0
votes
0 answers

bluetooth headset does not load A2DP sink automatically after connect

I have Kappa (507075) headset that connects to Bluetooth automatically but does not load the A2dp sink. It only loads HFP (hand free set) mono, which is unusable for music. The trick is to disconnect the headset inside the Settings dialogue (ubuntu…
user30424
  • 147
  • 1
  • 10
0
votes
1 answer

closeProfileProxy is not disconnecting my A2DP bluetooth connection, not sure why

I am connected to a bluetooth device using the a2dp profile. That part is all working fine, but when it comes time to disconnect all the expected code is accessed but the device does not disconnect and I'm not sure what I'm doing wrong. This is my…
user3822332
  • 199
  • 3
  • 15
0
votes
1 answer

ALSA: Playing and Outputting to multiple Bluetooth Devices simultaneously?

How do I configure ALSA's asoundrc file to input and output audio data to two Bluetooth devices? I have tried using the dmix and dsnoop plugins to go about doing this similar to what is shown in the following post: ALSA Api: How to play two wave…
TristonL
  • 11
  • 4
0
votes
1 answer

Differences in smartphone chipsets for simultaneous BLE and HFP/A2DP on Android

I have a problem with a lost BLE connection during a voice call on Android smartphone chipsets. I am connecting an Android phone to a car stereo via Bluetooth. I also have a separate BLE peripheral connected to the same smartphone. I make a phone…
0
votes
0 answers

How to get the bluetooth a2dp connetcted event on xamarin?

I have a xamarin project (API 28, soon to be 29), and I need to catch the event of bluetooth a2dp device. I have a broadcast receiver with the following intent filter: IntentFilter bluetoothFilter = new…
Elydasian
  • 2,016
  • 5
  • 23
  • 41
0
votes
1 answer

How to connect two android devices using a2dp and avrcp bluetooth profiles?

I am trying to implement a2dp and avrcp between two android devices, i couldn't find any proper references for this. some I have found but are not so much helpful. if (mBluetoothAdapter == null && !mBluetoothAdapter.isEnabled()) { …
Hari
  • 27
  • 10
0
votes
0 answers

Bluez as standalone on Android

I am trying to enable A2dp sink profile for Android phone and stream audio from another device. I know the process of how to do the same for bluedroid stack of Android . But I want to use Bluez stack .I got a link explaining to do it for Android 4.1…
0
votes
1 answer

How to scan and connect to Bluetooth A2DP device on iOS programmatically

I have built an Android APP which handles the scan, return nearby devices, and connect steps on both BLE and Bluetooth A2DP, and it works well. Now I’m developing the iOS version which is with exactly the same functionalities. For the BLE part, I…
Alison
  • 431
  • 6
  • 19
1 2 3
8
9