Music Controls Plugin not working


I’m trying to add play/pause functions to the notification area. I found this plugin Music Controls and I followed the installation instructions provided on the page and then pasted the code into my progect but it is not working. When i try to build the project i get errors like “error: package does not exist”.

Does anyone have an idea on how to fix it? Or if ther is a better plugin for doing that?