Getting esp32 song metadata with bluetooth

Hello, I have an esp32 board with a screen.
I have soldered buttons to it and written a code to use bluetooth to put my samsung mobile phone's music on play, pause, etc. All this works fine.

Now, I would like to display the metadata (artist, track and duration of the song) on the screen. I can't find an example code or a clear tutorial anywhere. I did find this page

esp_avrc.html,

but I don't know how to get all these commands into a working code.

Could I get some advice?
Thank you for your time
JanG