I am running the Spotify Snap with a premium account directly from the Snap store on Ubuntu 20.10. Media keys from my keyboard(Das Keyboard 4 Pro) have always worked perfectly with the Spotify Snap. With the most recent update, 18.104.22.1685.g2d2da0de, media keys have stopped working. They work fine in other applications.
In the attached dump I tried using the play, previous, and next button on my keyboard. When those didn't work I click the play button then tried pause, previous, and next on my keyboard. In either case the media keys did not work.
Solved! Go to Solution.
I experienced this issue and managed to trace it down to Firefox. I unchecked "Control media via keyboard, headset, or virtual interface" in Firefox preferences and after restarting my machine, media keys worked again. I presume I started Firefox before Spotify and Firefox took control of the media keys. It's worth noting that Chrome also has media keys functionality, and so you might want to check that too (https://community.spotify.com/t5/Desktop-Windows/Media-keys-being-taken-over-by-chrome-tabs/td-p/473...)
Hope this helps!