Introduction

Wii Media Player is a simple application written in Common Lisp that allows you to serve music files from your computer for use in a web browser. It has been specifically geared towards use in Opera on the Wii. It is licensed under the LLGPL and written by Ryan Moe <ryan.moe@gmail.com>.

It has only been tested on Linux/SBCL but should work anywhere Hunchentoot does.

It depends on Hunchentoot, CL-FAD, and HTML-Template.

Installation and Use

To install just untar somewhere.
There are three configuration variables found in apps/music-player/config.lisp.

*music-directory*
Must be set to the directory containing the music files.
*server-ip*
IP Address for the server (default 0.0.0.0).
*server-port*
Port for the server (default: 8080).
Now that everything is set up all that is left to do is run the server. This can be done by running apps/music-player/start.sh. Alternatively, to start it from a SLIME session you just need to use ASDF to load the music-player definition and then run (music-player:start).

You should now be able go to http://(your ip address):8080 and see the contents of *music-directory*.

Screenshots

Folder view, and File view

Notes

Windows Support
As it currently stands WMP doesn't really work on Windows. I believe I've got the code to where it would work on Windows, but the real problem is that you need a multi-threaded Lisp to run Hunchentoot. CLISP and SBCL don't do multi-threading on Windows (to my knowledge) so they're a less than optimal choice. I'm sure one of the commercial Lisps would work but as I don't have access to those (or a Windows box) I can't really test it.
Flash issues
Because Opera on the Wii only supports Flash 7 the flash player is not able to be controlled with javascript. This turns out to be a big loss because without Javascript every time a song is added the player has to reload, stopping the current song. It also doesn't allow individual songs to be deleted from the playlist, or information about the current song to be obtained among many other things.

Download

Download package