Re: Streaming audio using m3u playlist file



Roy Schestowitz wrote:
On Sunday 21 August 2005 04:46, Barry Koopersmith wrote:

I created a webpage with this line of code:

<a href="Scenic-3songs.m3u">(streaming with WinAmp)</a>

The referenced "Scenic-3songs.m3u" file contains this one line:

http://www.thefireandreason.com/TFaRLive1.mp3

Here is the webpage:

http://thefireandreason.irbl.net/audio/TFaR_audio_streaming.htm

When I view the webpage in Mozilla Firefox, Netscape or Opera, when I
click on the link, it pops up the WinAmp mp3 player and it immediately
starts streaming and playing the referenced 11 mb size mp3 file. When I
view and click on the link in Internet Explorer (version 6.0), it pops
up the WinAmp mp3 player but it does not play the mp3 file. When I view
the html file locally on my computer in Internet Explorer and click on
the link, it pops up WinAmp and plays the mp3 immediately.

What code can I use that will stream the mp3 file in Internet Explorer
on the website (as well as the other web browsers)?

Thanks to anyone who can help me out.


I suspect that you need to configure Internet Explorer to pass control to
Winamp differently. It's natural to imagine that winamp.exe is passed some
extra arguments that tell it how to handle the input file (e.g. enqueue,
play). To say it differently, I don't think you should be dealing with this
at source code level unless there is some M$-specific hack, which would not
be valid HTML. This still doesn't explain why you get a different behaviour
when viewing the page locally. Does the MP3 file reside locally as well? I
assume not.

Try to change your filetypes in Windows and see if the default application
for opening MP3 files gets assigned different behaviours depending on where
it comes from.

It is also worth mentioning that by embedding the URL's in an
application-specific (Winamp) format, you might peril users who use other
players. XMMS playlists, for example, are constructed differently.

Roy

Does the mp3 play in Internet Explorer if anybody else clicks that link? Please let me know.

Is there a better method for streaming mp3 files on a webpage (so it starts playing immediately instead of waiting until the entire file downloads)?
.




Relevant Pages

  • Mp3 file can execute code in Winamp [Sandblad advisory #5]
    ... Mp3 file can execute code in Winamp. ... The buffer overflow condition occours when the url ... containing the JMP ESP instruction we need to find are a bit limited (but ...
    (Bugtraq)
  • Re: Streaming audio using m3u playlist file
    ... >>>starts streaming and playing the referenced 11 mb size mp3 file. ... >>>view and click on the link in Internet Explorer, ... >>>up the WinAmp mp3 player but it does not play the mp3 file. ...
    (alt.html)
  • [NT] MP3 Files can Cause Code Execution under Winamp
    ... It is possible to modify an existing MP3 file in such a way that it can ... Winamp and can then infect other MP3 files found on hard drives or network ... The buffer overflow condition occurs when the URL ... containing the JMP ESP instruction we need to find are a bit limited (but ...
    (Securiteam)
  • Re: Winamp: Mp3 file can control the minibrowser
    ... >Title: Winamp: Mp3 file can control the minibrowser ... >Winamp has a built-in minibrowser to show information about songs beeing ... >ID3v2 tag instead. ...
    (Bugtraq)
  • Re: Microsoft tells you to use winamp...!
    ... > "3.16 Why can't I play an MP3 file? ... > can use Winamp 2.x, available from the Winamp Web site. ... > Clear the ID3v1 tag and ID3v2 tag check boxes. ...
    (microsoft.public.windowsxp.general)