How to configure bluetooth media player control

I have a bluetooth headset that has support for multipoint connection (ie can connect to two devices at the same time). I have it connected to my phone and my laptop. The headset automatically mutes audio (without sending any command) from the laptop when the phone plays any sound. The headset also seems to send a command to pause playing media to the laptop. The issue is that whenever this happens, any youtube video I’m playing seems to rewind as if I hit the prev button. Spotify just pauses audio and does not rewind.

How can I view the commands being issued by the headset, is that possible? How can i change the mapping of the actions for commands from the headset? How can I completely disable the actions for bluetooth ?