Thursday, May 22, 2008

gmplayer with .m3u

i found a good way to use gmplayer with .m3u files from my streaming music server (using ampache). i made a little bash script: #!/bin/bash # cache up to 16MB, so it won't get cut off if paused # since the cache is so big, only cache 1% before starting #echo Opening "$1" # for firefox #gmplayer -cache 16384 -cache-min 1 -playlist $@ # for opera (it makes filenames like "playlist (3).m3u", and it waits for this script to finish) gmplayer -cache 16384 -cache-min 1 -playlist "$1" & then i set up my browser to run this with the downloaded .m3u as the argument.

No comments: