PDA

View Full Version : Streaming


fractalvibes
09-26-2002, 12:40 AM
I have used the following technique with great success in both ASP and PHP:

Store an image (jpeg or gif) in a database as a blob, along with content-type and some ID nbr. Write a handler script, so that image tags look like:
img src=ShowImage.asp?ID=99 (or ShowImage.php!)

Show Image reads the row for ID 99, set's its http header content-type appropriately, and does a response.binarywrite myimage or an echo $myimage

I am trying to the same thing with mp3 files and real audio. I have ram files (for real audio) and m3u files (for mp3) that refer to
PlayAudio.php?ID=99 rather than to mytune.ra or mytune.mp3.

THe m3u will stream for < 30 seconds. THe Real Audio will not at
all....so I am thinking it might be an Apache issue?

Dunno - anyone ever tried this?

thanks,

Phil J.

chrisvmarle
09-26-2002, 06:14 AM
I haven't ever tried this before and don't know much about it. But the MP3 file might stop because of apache's timeout.

I know, it's just recognizing a (your) problem and it doesn't solve much, but I thought maybe it'll help you anyway (though I'm not sure :S)

Mzzl, Chris

fractalvibes
09-26-2002, 09:33 PM
Could be, though ordinary mp3 and real audio streams just fine.
Is there an equivalent to :
Set Server.SessionTimeout = sss ?

or Set Server.ScriptTimeOut = sss ?

Phil J.