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.
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.
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.
Bluez can support A2DP sink. but Android framework doesn't enable this profile.
you may implement the Bluetooth device path using hard-code practice
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With