Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

A cool little program

Originally written for WordPress, this two-part application displays XMMS’s currently playing song.

Consisting of a C module, which is compiled and operates as part of XMMS itself (as a plugin) and a PHP script which reads the output of this plugin and displays it wherever the user wants (i.e. on a remote web host).  It uses sockets, so the webserver doesn’t need to be on the computer running XMMS, which is handy for websites like… this one.

Why am I not yet using it?  A few bugs, it would seem… I don’t speak C, so I’ve emailed the author to ask what’s going on.  Anyone else running Linux/XMMS I’d recommend take a look here, even if you’re not running WP (that is of little significance).

I’ve got the script running here: http://nicktangents.is-a-geek.com/random/playing.php until it is worked out properly, at which point I’ll move it over to this part of the world (i.e. the server the website you are viewing now is running off).

It is interesting, but only partially working… the “currently playing” song as displayed there is just the first entry in my playlist at the minute… the artist field does not function, however as the song string is actually the XMMS title string, that doesn’t matter too much.  I’m more interested in resolving the first-entry-in-playlist-only display thing, personally.

Any resolution shall be posted here-ish as soon as it happens!  A reason to get the Projects section off the ground, perhaps…