Would like the ability to play ShoutCast streams on my MPD server by
selecting them with the iPhone. Would go something like this:
1. Open impdclient or Safari and browse the ShoutCast.com directory of
stations.
2. Press Tune In and have impdclient parse the .pls file and pass the
stream path to the MPD server
3. Enjoy streamed music!
I have a shell script that does this on my Unbuntu system. I had to
associate .pls files with it in Firefox, but I'm now able to click the Tune
In and have my music start. Here are the contents of my shell script:
#!/usr/bin/env sh
export MPD_PORT=6600
export MPD_HOST=192.168.0.1
echo parameter: file.pls
mpc clear
grep '^File[0-9]*' $1 | sed -e 's/^File[0-9]*=//' | mpc add
mpc play
Thanks for the awesome player, even if this does not get accepted!