How can I use the media keys (previous track, play/pause, next track) for Spotify instead of iTunes? OS X 10.9.4
If you use the Spotify desktop app, the media keys on OS X work by default (sometimes iTunes randomly "retains" the keys: just reboot). For the best results, don't keep iTunes and Spotify open at the same time.
If you use the Spotify Web Player, you can enable the media keys using BeardedSpice, a free application which enables you to control web-based media players using you keyboard media keys. It also works for YouTube, for example.
I've found this helper application : Magic Keys ; Graciously written in a generic way by the creator of the Gear music player.
iTunes still sometimes pops us when using a Bluetooth control however, but it's minimal and non-intrusive and works well otherwise.
You can download Bowtie. Although the developers have stopped developing this app, you can still use it to control Spotify, Rdio, and iTunes with media keys.
The keys didn't work for me on OSX10.10, while they normally do. I launched and quit iTunes. After that, Spotify responded to the media keys again. Even play/pause without launching iTunes. This may be because I tweaked OS X to stop launching iTunes when pressing play/pause (I can't remember for sure.)
Pressing play/pause on a headset does still launch iTunes.
My solution to the Spotify problem was to go to keyboard shortcuts in account preferences, and assign the > and < keys to perform the "Seek Forward" and "Seek Backward" functions. My media keys have always worked to start and pause playback, and skip or go back a track, but they would not perform the seek function.
There is a small, free and OS tool called MacOS High Sierra Media Key Enabler for iTunes and Spotify.
It proxies media key events to iTunes or Spotify. You can prioritize which app you would like to control or you can go with the default behaviour which controls the running app. The app runs in the menu bar in the form of a subtle and beautiful black dot.
This workaround is needed as Apple in High Sierra changed the behaviour of the media controller keys: they no longer control iTunes, they control the video playback in Safari.
I've found a really nice chrome addon: It gives me notifications and uses my mac media keys to control the Spotify web player.
Everything I wanted + it's well maintained by the dev and open source hosted on github.
My main reason atm for using the webplayer is not having any ads.
Blocked them with ublock and these filters: