简体   繁体   English

如何在Android中启用A2DP接收器功能?

[英]How to enable A2DP sink functionality in Android?

I'm developing a customized embedded device which uses Gingerbread 2.3.4 as an OS. 我正在开发一个使用Gingerbread 2.3.4作为操作系统的定制嵌入式设备。 Now the device should be able to play audio streaming from other A2DP -enabled devices such as iPhone or other Android devices. 现在,该设备应该能够播放来自其他支持A2DP的设备(如iPhone或其他Android设备)的音频流。 I know that the Gingerbread includes Bluez stack 4.69 which is capable of A2DP sink functionality. 我知道Gingerbread包含Bluez堆栈4.69,它具有A2DP接收器功能。 However, I doubt that Android exposes these APIs. 但是,我怀疑Android是否公开了这些API。

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. 由于我没有开发通用的Android应用程序,因此将会欣赏任何类型的非标准方法。 I think the Bluez stack can be directly accessed through DBus interface even in Android. 我认为即使在Android中也可以通过DBus接口直接访问Bluez堆栈。

Bluez can support A2DP sink. Bluez可以支持A2DP接收器。 but Android framework doesn't enable this profile. 但Android框架无法启用此配置文件。

you may implement the Bluetooth device path using hard-code practice 您可以使用硬编码实践来实现蓝牙设备路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM