Does anyone know what parameters or options are available when 
defining an external protocol?

A question was asked on the WarpBrowsers list about getting Mozilla to
handle Windows Media files.  These are normally small file with an 
extension of ASX that contain some XML (I assume) that points to 
another file with a URL like:

   
mms://mediaserver.emimusic.de/emimusic/kylieminogue/audio/5509860_01.w
ma

When I looked at this, I remembered that protocols can be defined in 
Mozilla.  Then I hoped we could use a Rexx wrapper to run something (I
initially tried WGet) to retrieve the file, and and start WarpVision 
to play it.  So, I looked at the example (in os2prefs.js) which is for
Telnet:

pref("applications.telnet", "telnetpm.exe");
pref("applications.telnet.host", "%host%");
pref("applications.telnet.port", "-p %port%");

That, plus the entries that MozillaPMMail add lead me to:

pref("applications.mms", "MMSWget.cmd");
pref("applications.mms.parameters", "%url%");

But, there's a problem with this.  I used Rexx for MMSWGet.cmd.  The 
URL passed in is 
"//mediaserver.emimusic.de/emimusic/kylieminogue/audio/5509860_01.wma"
  But, Rexx ignores the double slash and everything after it.  I can 
change to not use Rexx, but, need to parse out the actual file name 
for calling for the call to WarpVision, and using Rexx will make this 
a lot easier.

Looking at the %host% will give me the host name 
(mediaserver.emimusic.de), and %port% will give the port number if 
there is one.  So, does anyone know if there are any other options I 
can use to get the other parts of the URL?

Once this is sorted out, there is also the problem of actually 
retrieving the file.  WGet couldn't get it as it's not ftp or http.  
After searching the net I found two ways of doing it:

- SDP (http://sdp.ppona.com/) is a Windows program that will run under
ODIN, but, isn't retrieving the whole file.  Also, it puts up an error
each time it tries to update the progress bar. I'll try a new ODIN 
version as I haven't updated it for a LONG time.

- mmsclient (http://geocities.com/majormms/) is a linux program.  I 
mentioned this on the WarpBrowser list and before I had time to think,
someone came back with a "it compiles OK, anyone want it message".  
And it seems to work.

-- 
David Forrester
davidfor at internode dot on dot net
http://www.os2world.com/djfos20.html

PS.  The URL used was the example originally suggested and doen't 
represent my taste in music :)

Reply via email to