iTunes media keys not working in Mac OS X El Capitan

Solution 1:

Finally, I ran the following 2 commands in my terminal:

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist

Worked like a charm!