RE: linking to mp3 files
"Andrew Liebeskind" <[email protected]> Tue, 11 Feb 2003 14:54:39 -0500 (EST)
| Newsgroups | gmane.comp.apache.mod-mp3 |
|---|---|
| Message-ID | <[email protected]> |
Jon, Thanks for the clarification. Actually, I'm sending playlists to Winamp 2.81, which then plays the individual MP3 URL's. The strange behaviour I'm seeing, though, is this: If I put a URL of the form "?op=play&song=<md5hash>", then I get a stream which shows the proper artist and song title in the Winamp window. The Winamp "File Info" window gives output like the following: ~ Network received: 140009 bytes Server: mod_mp3 Metadata received: 1040 bytes Metadata interval: 8192 bytes Stream name: Mere Device Current title: BO: Kain Awakens - Legacy of Kain ~ If I simply reference the URL for an MP3 file, then Winamp displays only the filename, and the "File Info" window looks like the following: ~ Network received: 469024 bytes Server: Apache/1.3.27 (Unix) (Gentoo/Linux) mod_gzip/1.3.19.1a mod_mp3/0.39 mod_ssl/2.8.12 OpenSSL/0.9.6g PHP/4.2.3 Content-Type: audio/mpeg ID3v2 tag: 1377 bytes Stream name: Act2.mp3 Content length: 1236992 bytes ~ This happens regardless of whether I have a "Add-Handler mp3-file *.mp3" statement present in apache.conf, either in the main file, or in the virtual server config which I use for mod_mp3. In all of these cases, the file plays just fine. What I'd really like (and the main reason I'm using mod_mp3) is to get the full stream format with title and artist info, as shown in the first example, but only have to reference the URL of an MP3 file, rather than using ?op=play . My question is, should the mp3-file handler be providing that for me? Many thanks, Andrew Disnard, Jon said: > It will send the files out with shoutcast encoding added, yes. > > It might be hard to differentiate the activity as a download, or a > stream. Especially on some browsers. > > If everything is properly configured, a browser should pass control of > the data to a 3rd party app (your mp3 player), and the data should be > acted upon as soon as it is received. There may also be a title stream > visible in your mp3 player. > > Wrong behavior would be the browser prompting you to save the stream, > but there is certainly nothing wrong about saving a stream. Normally a > stream would save to a very large file, and continue to grow as long as > the stream exist. In this case the stream is not infinite, and will > stop. > > So there can be some confusion if you don't know what to look for. > > -Jon > > > -----Original Message----- > From: Andrew Liebeskind [mailto:[email protected]] > Sent: Tuesday, February 11, 2003 12:16 > To: [email protected] > Subject: RE: [Mod_mp3] linking to mp3 files > > > Jon, > > The thing that's not clear to me is this: should configuring the mod_mp3 > default handler thingy make mp3 files be sent out as a Shoutcast stream, > or does that only happen when using a URL of form ?op=play&song=<foo> ? > > Thanks, > Andrew Liebeskind >