For example when I play something on https://open.spotify.com it gives the browser metadata on the track, some buttons for next and previous song, etc. How can I achieve this? Playing audio with metadata in the file, for example a .M4A, didn't work. Right now I'm just using the audio tag to play audio. Should I use another way to play audio?
https://i.imgur.com/y5yHkVP.png
https://i.imgur.com/UsAkVlO.png
(Sorry it say's I need 10 reputation to embed images)