View Single Post
Old 03-02-2011, 05:14 PM   #44
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
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
dhdurgee is offline   Reply With Quote