Getting the button commands depends on the BT modes the headset supports and how it announces the capabilities to the device. If I remember correctly you need to handle the button effects thet bluetooth emits in pulseaudio, not in the media source application.