msfeldstein/chrome-media-keys — pull request #15 by sj26 (2014-08-13 03:28:49+00:00)
Title: Use Chrome commands for capturing media keys.

Now supports global scope and so works even when Chrome is in the background.

https://developer.chrome.com/extensions/commands

Not sure this does exactly what you're trying to achieve, though, because it won't yield control to other applications like SPMediaKeyTap will.

I made this change because I'm running chrome dev channel on os x, npapi stopped working (whether due to deprecation or because the binary isn't fat and I'm on 64-bit chrome now), and I couldn't get the native version working. This works great with the aforementioned caveat.