Automatically control the Music Player Daemon according to its current state