获取AVRCP中当前播放的歌曲名称或在AVRCP中建立浏览频道
我正在尝试在 Andriod 上创建一个 AVRCP 应用程序,我将从中连接到另一个设备(智能手机)。目前我可以从我的应用程序播放、暂停其他设备的歌曲,但我想获取当前播放歌曲的歌曲名称。 这在安卓上可行吗?
我已通过 L2CAP 连接到其他设备,并且可以在其他智能手机上播放和暂停歌曲。
我已经阅读了 AVRCP 配置文件文档,文档提到了在从连接的设备获取任何通知之前建立浏览通道。 但如何建立浏览通道呢?
如果有人以前尝试过此操作,请告诉我
I am trying to create a AVRCP app on Andriod, from which I will be connecting to another device (smart phone). Currently I am able to play, pause songs of other device from my app, but I want to get the song name of the currently playing song.
Is this possible on Android?
I have connected to other device over L2CAP and I am able to play and pause songs on other smartphone.
I have gone through the AVRCP profile documentation and the documentation mentions about establishing a browsing channel before getting any notification from connected device.
But how to establish a browsing channel?
If someone has tried this before, please let me know
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想获取歌曲名称,无需建立浏览频道。如果它支持 avrcp 1.3 版本,那么您将获得歌曲名称、艺术家姓名、曲目编号等...
问候,
马里卡朱纳拉奥
if you want to get the song name, no need to establish browsing channel. if it support the avrcp 1.3 version then you will get song name, artist name, track number etc...
regards,
V.mallikarjuna rao