How to enable A2DP sink functionality in Android?

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:04:31

问题


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.


回答1:


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

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



来源:https://stackoverflow.com/questions/10180895/how-to-enable-a2dp-sink-functionality-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!