RE: single

"Brendan" <[email protected]> Thu, 14 Nov 2002 19:06:31 +1100
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <3DD3F437.22498.10018AD@localhost>
Oh, so there is no other way that it can be done?  I have to make a new 
php file for every mp3 file?  I was hoping for a more simplier way as I 
intend to have a huge static collection of teaching material.

Does mod_mp3 support any bitrate streams?  I put a mixture in and set 
it to random, it did 128k & 320k fine although stuttered when played in 
Windows Media Player 7.01 but wouldn't play the lower 16k file?



> if you set the header type correctly, the default mp3 player (in
> windows) will load...
> 
> eg this is how you could send a single mp3...
> the user downloads foo.php which contains the following php code:
> 
> #begin code snip
> <?php
> header("Content-Type: audio/mpegurl;");
> ?>
> #EXTM3U
> #EXTINF: O Fortuna
> 
http://tunes.zinkwazi.com:8000/?op=play&song=5f9a6ab7f7fdeaf88091
7e2c7
> 503022 f #end code snip
> 
> (assuming you are using php, if not set the header in your language of
> choice) greg