Instead of doing the event parsing in VLCCoreInteraction, do it
in the library. That way the VLC code does not get cluttered with
details how to parse the event and everything is properly dealt with
by the SPMediaKeyTap class.
Do not read the list from the user defaults, it is unlikely anyone
ever has to customize this.
(cherry picked from commit 4221ab456b)
Signed-off-by: Felix Paul Kühne <felix@feepk.net>
Note that this rework changes the current behavior: if VLC is in the background, the keys still control it, however if you start another key user (such as iTunes, QTP, etc.), it won't interfere and control the other app. That's why macosx-mediakeys-background was removed.
Thanks to Spotify for releasing their code.