Old 24th May 2002, 20:39   #1
Junior Member
Join Date: May 2002
Location: Sweden
Posts: 7
M3U, http files and download scripts

I'm trying to compile a playlist consisting of several different formats.

I can, for example, create an M3U playlist that contains list of .xm/.it-files located on a webserver and it works fine. They get downloaded and then played.

Now comes the problem, if I want to have the files downloaded through a download script. Winamp automatically interprets it as if I'm trying to stream mp3 data and setting a correct filename in the Content-Type and Content-Disposition-headers doesn't help.

Is there any way around this or does winamp explicitly use the filename in the url to determine what format it's supposed to treat the file as?
cloaked is offline   Reply With Quote
Old 24th May 2002, 22:43   #2
DJ Egg
Winamp & Shoutcast Team
Join Date: Jun 2000
Posts: 35,967
Yes, Winamp reads the file extension to determine which input plugin to use.
If no extension is specified in the url, then Winamp assumes it's an MPEG Audio Stream and uses in_mp3.dll

This particular type of issue has been addressed previously when trying to play WMA streams from an mms:// address, but I don't know if works with other formats/extensions.

Re: How to play Windows Media streams (ASF/ASX) with Winamp

The fix in this case is to add /.wma to the end of the url, but as I said, I don't know if it works with (PHP/Java) scripts or XM/IT modules, etc. (add: /.mod)
DJ Egg is offline   Reply With Quote
Old 24th May 2002, 22:51   #3
Junior Member
Join Date: May 2002
Location: Sweden
Posts: 7
Actually, a quick glance at these threads gave me an idea.

I got away with simply adding the filename as an unused parameter at the end of the script. Seems to work like a charm!

Thanks for the help.
cloaked is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump