how can i make the background image of a page change when audio starts playing?

I’m making a page that cycles through a playlist and I’d like the background to change with every song, but I’m not well versed in js. any help would be appreciated.

I haven’t tried anything yet, & I unfortunately cant find anything helpful online.