PDA

View Full Version : Streaming audio?


DeepFriedComics
01 Nov 2001, 04:33
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?

MrLister
01 Nov 2001, 04:43
javascript not php

DeepFriedComics
01 Nov 2001, 18:22
I remember seeing something like this done with php and i'd like to go that route if possible.

apfeifer
01 Nov 2001, 20:36
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:

TWTCommish
01 Nov 2001, 21:11
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.

apfeifer
01 Nov 2001, 21:46
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:

DeepFriedComics
02 Nov 2001, 00:26
That's exactly what i'm looking for Commish.

Mind enlightening me on the exact process?

TWTCommish
02 Nov 2001, 01:15
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. :)

JorgeX
11 Mar 2007, 00:48
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?