使用Exoplayer MediaSessionConnector使用汽车媒体应用显示媒体元数据

发布于 2025-01-31 06:11:47 字数 244 浏览 5 评论 0原文

我的媒体应用使用Exoplayer的MediaSessionConnector将MediaSession Metadata发送到Car Media App。汽车媒体应用应该显示当前曲目的标题,专辑和艺术家。 但这只是显示了专辑的标题,而艺术家则留下了空白。

问题是TimelineQueuenavigator使用MediaDescriptionCompat,该comprycompat采用标题和描述。没有明确的方法来设置艺术家和专辑。如何将这种情况hande?

My media app using Exoplayer's mediasessionconnector to send the mediasession metadata to the Car media App. Car media app supposed to show the title, album and artist of the current track.
But it just shows the title with album and artist left blank.

The problem is TimelineQueueNavigator uses MediaDescriptionCompat which takes title and descriptions. There is no explicitly way to set artist and album. How to hanlde this situation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

﹎☆浅夏丿初晴 2025-02-07 06:11:47

根据Defalutmetadataprovider的专辑,并且需要在MediaDescriptionCompat中捆绑。然后它起作用

As per DefalutMetadataProvider Album and Artists needs to be bundled in MediaDescriptionCompat. Then it worked

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文