title: (Bluez) How to get bluetooth headset buttons input?
body: <p>I have a bluetooth headset connected to a linux device.
  I would like to programmatically receive the play/pause/next/previous/volUp/volDown button press.</p>
  <p>After some research I found out that I can interact with Bluez with dbus.
  I tried to register a MediaPlayer using this script <a href="https://github.com/bluez/bluez/blob/master/test/example-player" rel="nofollow noreferrer">https://github.com/bluez/bluez/blob/master/test/example-player</a>
  But when I inspect dbus there's no new player, and it doesn't seem to have changed anything.</p>
  <p>I also tried to use the Gatt services, but I can't find org.bluez.GattService1 anywhere.</p>
  <p>What would be the best way to get the inputs? Is there something wrong with my Bluez?</p>
  <p>Background:
  My goal is to have a audio input and audio output both connected via bluetooth to a rpi.
  I did manage to do this and have the sound from the input play on the output.
  Now I would like to forward the inputs too.</p>