The Life Behind ‘Currently Hearing’

Currently Playing

Okay, you’ve probably noticed it by now, that if you actually visit this site via your web browser and not an RSS reader that over on the right menu sometimes you will see a ‘Currently Playing’ section which looks similar to that in the screenshot on the right. If you were a previous visitor before the redesign, you would have also seen it was a lot more basic than it is now.

The current setup is actually quite complex (we’re talking about the process to show cover art for albums - for those who have missed it). I’ve seen this on one of the other blogs I frequent, asterisk*. I’m sure the currently playing function over there functions totally different to here. In fact, I know it does because the author of asterisk* uses iTunes on a Mac, and over here i’m using Winamp on a Windows PC.

The complex structure?

Thats just the download part of images too, the process which is ran every time a song of mine changes in Winamp. The front end part of the script simply checks to see if Winamp is actually playing something (by calculating the last track length, when it should have finished, and the time now), then depending on the results of that it will either show the Currently Playing section or not. When shown the script simply checks the cache directory for a corresponding cover art image, then displays it.

Obviously there are some inperfections, but don’t worry - I’m working on them.

This could be one of my first WordPress plugins too!

Post a Comment

Note: * indicates required fields.