Helpful Information
 
 
Category: vB3 Programming Discussions
Streaming audio?

I'd like to set up a script (say..."audio.php" for example) that when users visit that page (via a link) their default audio player opens and plays the file (streaming).

Never really messed with audio before, not sure how it works. Anybody have any ideas?

javascript not php

I remember seeing something like this done with php and i'd like to go that route if possible.

Hmm, I'd think you would do this with JavaScript also, if you find the PHP way of doing it please post it here so I can see it. Thanks!

:cool:

Um, this has really nothing to do with JavaScript or PHP. :) Example: JerryBowyer.com (yeah, I built it. What of it? :D). Check it out...streaming WMA and RAM files...there's no JavaScript involved, and the PHP is only used to produce the links and manage the audio files. The actual link itself is just a plain old link to the file...the rest, the program (Windows Media Player, or RealPlayer) handles itself.

Hm, I wonder what I was thinking, it's pretty obvious isn't it? :p Well, seeing my answer was wrong, your best bet would be to do what TWTCommish said. I must have had a blonde moment or something, even though I'm not blonde.:D

:cool:

That's exactly what i'm looking for Commish.

Mind enlightening me on the exact process?

It's pretty simple: create the .rm audio file, and upload it wherever you want on your webserver. I'll assume the file is called "myfile.rm", and that it has been uploaded to www.somesite.com/myfile.rm. Then, create a file called "myfile.ram" (not the "a" there in the middle...not just "rm")...enter this into the file with your favorite text editor:

pnm://www.somesite.com/myfile.rm

Then, just link to "myfile.ram" anywhere on your site, and clicking on it should allow it to stream. I dunno if it would work ANYWAY, but I've read that the .ram file with that little "pnm" thing sort of redirects it to the other file. Odd, I know. :D With .wma files, just upload them and link to them...the streaming should handle itself. At least, it works for me. :)

It's pretty simple: create the .rm audio file, and upload it wherever you want on your webserver. I'll assume the file is called "myfile.rm", and that it has been uploaded to www.somesite.com/myfile.rm. Then, create a file called "myfile.ram" (not the "a" there in the middle...not just "rm")...enter this into the file with your favorite text editor:

pnm://www.somesite.com/myfile.rm

Then, just link to "myfile.ram" anywhere on your site, and clicking on it should allow it to stream. I dunno if it would work ANYWAY, but I've read that the .ram file with that little "pnm" thing sort of redirects it to the other file. Odd, I know. :D With .wma files, just upload them and link to them...the streaming should handle itself. At least, it works for me. :)


Hi, how can i create theplaylist for my web mp3 fileS?










privacy (GDPR)