Skip to content

Draft: RFC: spa: bluez: follow MediaPlayer1 objects and set media.* keys in a2dp-source

The BlueZ media api exports players for devices which may be used to retrieve metadata about the currently playing track, etc.

This MR attempts to extend the BlueZ monitor to create and manage MediaPlayer1 objects appropriately.

Furthermore, a2dp-source component is extended to follow a player of the transport's device and set media.* node properties based on data from the player.

At the moment:

  • media.software (Name);
  • media.title (Track.Title);
  • media.artist (Track.Artist);
  • media.name keys are set.

The media.name key is at the moment simply set to [{device name}] {artist}: {title} ({album}).


I'm wondering if something like this is still in-scope for the BlueZ plugin?

Merge request reports