I have looked around a bit more and it appears that curl is available on the kindle to download internet files. I have added to the /mnt/us/mplayer/control.sh script to take advantage of this by adding a section:
InternetPlaylistLoad() {
curl -s "$@" | grep :// | sed 's/File[0-9][0-9]*=//' >/tmp/mplayer.playlist
loadplaylist /tmp/mplayer.playlist
}
This is prior to the case statement, where I added cases for each station eg:
wmal)
InternetPlaylistLoad "http://provisioning.streamtheworld.com/pls/WMALAMAAC.pls"
;;
Of course I also added key map entries in the mplayer.ini in the launchpad directory. This appears to be working, but I did have my kindle get into a strange state at one point that required a reboot to cleanup. Could this be the result of some sort of an internet streaming hiccup, or did something else cause the problem?
Dave
Last edited by dhdurgee; 03-03-2011 at 09:10 AM.
Reason: updated code to something that works
|