Bluetooth/Ble music controller

Hi,
I'm trying to make a bluetooth/ble controller for my phone so that I can play/pause music using an Arduino. I would like to use an Arduino MKR WiFi 1010 since it already has a nice carrier that would serve as the physical interface.
The problem is that I don't know how to do it. I've tried searching if anyone had done something similar before me but I haven't found anything. I did found some libraries, but all of them don't seem to work well (either not compatible with MKR WiFi 1010 or because of missing files).
Does anyone have any idea on how to make this controller?
Thank you