Skip to content

mcp: expose org.bluez.MediaPlayer information via GMCS

Pauli Virtanen linux-bluetooth 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- use --index/-i option for mpris-proxy, similar to btmon

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: decouple local org.bluez.MediaPlayer from AVRCPMakefile.plugins profiles/audio/avrcp-player.c profiles/audio/avrcp.c +3 more+626 -2210 replies
2/3mcp: expose org.bluez.MediaPlayer information via GMCSprofiles/audio/mcp.c+441 -650 replies
3/3tools/mpris-proxy: allow selecting which adapter to usetools/mpris-proxy.c+36 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ v2 0/3] mcp: expose org.bluez.MediaPlayer information via GMCS

v2:
- use --index/-i option for mpris-proxy, similar to btmon

***

Select one of the local org.bluez.MediaPlayer instances as the "active" player, and expose its playback controls via GMCS.

To do this, decouple media.c player API from AVRCP by adding a similar API for org.bluez.MediaPlayer --> remote as used for the remote --> org.bluez.MediaPlayer direction. Use it for both AVRCP and MCS.

In theory we could also expose each org.bluez.MediaPlayer in separate MCS instances. This is not implemented here; it would need to be done so that we don't consume ATT handles when players come and go.

Pauli Virtanen (3):
media: decouple local org.bluez.MediaPlayer from AVRCP
mcp: expose org.bluez.MediaPlayer information via GMCS tools/mpris-proxy: allow selecting which adapter to use

 Makefile.plugins              |   3 +-
 profiles/audio/avrcp-player.c | 291 +++++++++++++++++++
 profiles/audio/avrcp.c        |   4 +
 profiles/audio/avrcp.h        |   3 +
 profiles/audio/mcp.c          | 506 +++++++++++++++++++++++++++++-----
 profiles/audio/media.c        | 501 ++++++++++++++++++---------------
 profiles/audio/media.h        |  45 +++
 tools/mpris-proxy.c           |  37 ++-
 8 files changed, 1103 insertions(+), 287 deletions(-)
 create mode 100644 profiles/audio/avrcp-player.c
Signature · 1 line
2.51.1