Media keys Next and Previous don't work in safari
For a test, play a YouTube video in Safari and go to Notification Centre, and find "Now Playing". What the arrow keys do here is what the physical keys would do too. In Safari, they're for fast forward. I don't have chrome, so you can test what they do there. 

For Spotify, they are used to skip songs.