Thats pretty clever.

I wish I could install a callback in the player software that would be fired when specific things happened (song ended, paused, resumed, new song playing, etc.), rather than having to query the state of things every so often...