Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: send song metadata to Bluetooth speaker #500

Open
lschierer opened this Issue Mar 4, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@lschierer
Copy link

lschierer commented Mar 4, 2019

I'm using MPD 0.21.5 as packaged by termux on a galaxy tab S3. It is mostly working very well, but I have two problems (I'm going to submit a separate report for each)

When I'm playing locally, it works fine, (clients show the full song info) but when I connect via bluetooth to the handsfree system in my car, it only partially works. It can play the song, but it shows as "no title" and "no artist".

@lschierer

This comment has been minimized.

Copy link
Author

lschierer commented Mar 5, 2019

Another interesting note is that the car knows that this should be pausable (it shows play and pause buttons), but they are inoperable. Considering that MPD is normally controlled by a separate client, I'm not sure that is something that would be considered though, whereas I think the song info should be fixed regardless.

@MaxKellermann

This comment has been minimized.

Copy link
Member

MaxKellermann commented Mar 17, 2019

MPD uses OpenSLES on Android for sending decoded PCM data to the output device. It appears that OpenSLES has no way to publish metadata, and OpenSLES has no way to receive play/pause/etc. from the device.
Thus if your car tells you it can control MPD, it's lying.
I think to "fix" your problem, MPD would need to migrate to a different sound API. I don't know which Android sound API supports the features you want to have.

@lschierer

This comment has been minimized.

Copy link
Author

lschierer commented Apr 4, 2019

Looking at google, I see several different posts about AVRCP being used by other music applications to get track information to show up.

https://forum.xda-developers.com/android/development/improving-car-compatibility-bluetooth-t3727271

is one such.

@MaxKellermann

This comment has been minimized.

Copy link
Member

MaxKellermann commented Apr 4, 2019

MPD doesn't use AVRCP at all, it uses OpenSL.
AVRCP can be accessed using Android's Java APIs, while OpenSL is a native API. MPD is a native application, not a Java application.

@MaxKellermann MaxKellermann changed the title mpd and android with bluetooth Android: send song metadata to Bluetooth speaker Apr 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.