简体   繁体   English

将android设为a2dp接收器或带有蓝牙的直通音乐播放器

[英]Making an android a a2dp sink, or a pass-though music player with bluetooth

So firstly, although this has been asked before, have there been any recent updates that allow you to change a device to an a2dp sink instead of source from the app level? 因此,首先,尽管这已经被问过,但是最近是否有任何更新允许您将设备更改为a2dp接收器而不是应用程序级别的源?

What I want, is to create an app that can be on two phones. 我想要的是创建一个可以在两部手机上使用的应用程序。 One phone has music, and via bluetooth is streaming that to the phone, which in turn is sending that to a bluetooth speaker. 一个电话有音乐,然后通过蓝牙将其流式传输到电话,而电话又将其发送到蓝牙扬声器。 To clarify, the second phone is not playing music, merely passing it on to the speaker. 需要澄清的是,第二个电话不是在播放音乐,而只是将其传递给扬声器。

Like this 像这样

|Device 1| |设备1 | --bluetooth music stream--> |Device 2| -蓝牙音乐流-> |设备2 | --> |Bluetooth speaker| -> |蓝牙音箱|

Does anyone have any ideas how this could be done? 有谁知道如何做到这一点?

Thank you. 谢谢。

In my opinion you cannot. 我认为你不能。 To stream audio to Bluetooth device it should support A2DP profile. 要将音频流传输到蓝牙设备,它应支持A2DP配置文件。 But none of the phones are designed with A2DP. 但是,没有一款手机采用A2DP设计。

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

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