Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable A2DP sink functionality in Android?

I'm developing a customized embedded device which uses Gingerbread 2.3.4 as an OS. Now the device should be able to play audio streaming from other A2DP-enabled devices such as iPhone or other Android devices. I know that the Gingerbread includes Bluez stack 4.69 which is capable of A2DP sink functionality. However, I doubt that Android exposes these APIs.

Do you have any ideas how I can achieve this functionality? Since I'm not developing a generic Android App, any kinds of non-standard method will be appreciated. I think the Bluez stack can be directly accessed through DBus interface even in Android.

like image 304
Yong Jun Chang Avatar asked Apr 16 '12 20:04

Yong Jun Chang


People also ask

What is A2DP sink access?

A2DP Sink – A device is the sink when it acts as a sink of a digital audio stream delivered from the SOURCE on the same piconet. A2DP defines the protocols and procedures that realize distribution of audio content of high-quality in mono or stereo on ACL channels.

What is A2DP service android?

A2DP stands for Advanced Audio Distribution Profile. 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 streamed from a mobile phone to a wireless headset.


Video Answer


1 Answers

Bluez can support A2DP sink. but Android framework doesn't enable this profile.

you may implement the Bluetooth device path using hard-code practice

like image 163
Raju yourPepe Avatar answered Sep 19 '22 04:09

Raju yourPepe