View Full Version : Streaming from a web page
6th June 2000, 03:59
is it possable to create a web page with mp3's on it and allow visitors to stream mp3's but not be able to download them? Also im using Frontpage 2000 so some direction on how to install a nondownloadable mp3/wav on this would be kool...
please email me
just go ask mp3.com how they do it
simple, upload the MP3 to the website. Make sure you encode it to an internet friendly rate, like 24kbps, then connect to it's location with winamp, so say it is www.myserver.com/mymp3.mp3 (http://www.myserver.com/mymp3.mp3) you would right click on the Eject button in Winamp and choose Open Location. Then type in the URL. Now save the Playlist and upload the playlist to your server and link to the Playlist file from a webpage.
oh by the way, for those PHP programmers out there, I have released source on a PHP Powered Streaming script. It acts like an MPEG server, and runs from your Webserver, running PHP of course.
7th June 2000, 02:44
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Hoju:
just go ask mp3.com how they do it<HR></BLOCKQUOTE>
Ok, as far as I can see, mp3.com use a cgi file called play.cgi There is something in this file which calls winamp (or maybe any other streaming mp3 file player - no idea as I only have winamp). Now, getting hold of this play.cgi will be tough, unless a) they release it for you to download and install in the cgi-bin/ directory on your webserver, or b) someone else has it ;-)
Any clues people?
7th June 2000, 06:28
Well, I'm not totaly clueless! I think I know how they do it. The PLAY.CGI builds a simple playlist and forces it through the web server. Your browser sees that the file coming through is a .M3U or MP3 playlist. It then just starts up the program registered to the .M3U extencion and voila, you are listening to MP3 music. If you right click and/or choose to 'SAVE DESTINATION TO FILE' (when looking at the HTML element pointing to the PLAY.CGI), the .M3U (playlist) file will be saved... Not the MP3!
If you don't want to go to the trouble of writing a CGI, just create a playlist, pointing to the internet address of the MP3 file. This makes it easier to actualy "downoad & save" the MP3 file, but is a good 'lock' to keep the honest people honest. http://forums.winamp.com/ubb/smile.gif
All the best!
Ken www.radstream.com (http://www.radstream.com)
7th June 2000, 11:24
Thanks Ken, now for the hard bit.. Any ideas of how to do this so that the playlist is pointing to a live line recording?
11th June 2000, 22:50
I THINK, all you need to do is have a playlist pointing to the server/relay and port number. (i.e. http://220.127.116.11:8000)
I havn't experimented with this much, but should do the trick.
23rd August 2000, 20:04
Now, is there anyone willing to write a script like that in ASP or VBscript for a Win2k or NT4 server? We are working on a media streaming site and would like to offer MP3, Windows Media and possibly Real Audio sometime in the future. At present we have Windows Media. We are working on MP3 streaming now, but are unsure as to how to go about it. Please advise.
Purg Productions, Inc.
23rd August 2000, 20:25
The only problem with xrm, or whoevers idea, is that once a person downloads the play list they can just use the playlist to see where the mp3 is stored on the internet site, type it into ie and boom its downloaded. Im not sure how you could prevent it.
27th August 2000, 05:28
That really isn't an issue for me. I am hosting the MP3's in a secure location unassociated with any online webserver(IIS). They are located in a backend directory, but I understand what you mean. The m3u playlist file reads the mp3s from a local drive location, ie. c:\mp3\song.mp3, instead of mp3.blah.com/mp3/song.mp3. I'm not that great at explaining it, but unless someone wants to hack into our machines, they cannot easily download the file. I am still in need of a coder to perform this operation for me. =)
12th October 2000, 18:02
Want to know how mp3.com did it.
Really easy man.
Just display the proper mime header.
E.g: a mp3 file would be audio/mpeg a gif file would be image/gif
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.