#!/usr/bin/perl # This Perl script is adapted from the example script in the RSSLite package # There is no warranty, explicit or implied. Hack at your own risk. # The JavaScript, HTML and CSS is original and written by dan@inmyexperience.com # Suggestions on how to do any of this better are welcome. use LWP::Simple; use XML::RSSLite; my $content = get('http://127.0.0.1/audio?op=rdf') or die "Can't get the content!"; my %result; parseXML(\%result, \$content); open(OUT, ">/Library/WebServer/Documents/music.html"); print OUT <
| Playing Music: | Click a track title to play that track in the browser (mpeg data will just start downloading) |
| Streaming: | Select one or more tracks and go to the bottom, select a playlist format, and click Go! |