MLUG: [MLUG] Streaming mp3.com mp3's in Mozilla
[MLUG] Streaming mp3.com mp3's in Mozilla
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hi folks,

I mostly want to get this in the archive, but you might find it helpful.

I wrote a little shell script to let mozilla handle *.m3u url's in mpg123. 

Name this script "m3u123" and chmod +x and put in your path:

#!/bin/sh -e
if ( ps -u $USER |grep mpg123 ) then
  killall mpg123
fi
cat $1|mpg123 -@ -

In ~/.mozilla/default/mimeTypes.rdf add the following mime-handler:

<RDF:Description about="urn:mimetype:handler:audio/x-mpegurl">
  <NC:saveToDisk>false</NC:saveToDisk>
  <NC:handleInternal>false</NC:handleInternal>
  <NC:externalApplication resource="urn:mimetype:externalApplication:audio/x-mpegurl"/>
  <NC:alwaysAsk>false</NC:alwaysAsk>
</RDF:Description>
<RDF:Description about="urn:mimetype:externalApplication:audio/x-mpegurl">
  <NC:path>/usr/local/bin/m3u123</NC:path>
  <NC:prettyName>M3U script</NC:prettyName>
</RDF:Description>

Then restart mozilla and try clicking on the .m3u URL's at mp3.com etc.

Regards,
Mark Rages
EMAIL:PROTECTED


--
To unsubscribe, send a new message with no subject and the words
"unsubscribe members" in the body to EMAIL:PROTECTED

Archives are available at http://mlug.missouri.edu/list-archives/