streaming

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

streaming

Post by fractalvibes »

Hi,
I have done the following with great success in both ASP and PHP:

Upload images (jpeg, gif) into a database as a BLOB.
Write a script that serves up the file i.e.
img src=ShowImage.php?ID=99
ShowImage.php pulls the content-type and image out of the database,
sets it's content-type appropriately, and echoes the image. Works great!

Now I'm trying to do the same with mp3 files and real audio.

Say I have a ram file - it is just a link to the ra file, but in this case actually the url to the PlayMedia.php, similar to ShowImage in concept.

For mp3 I use a m3u file for the same purpose.

The m3u files will play for <30 seconds, the real audio will not at all.
Acts like it is connecting, but says the Real Audio player is contacting Real Networks for software and nothing happens.

Has anyone tried something similar??? There are obviously some other issues to be addressed that I am not aware of!

thanks,

Phil Jackson
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

not quite the answer to your question but a good opportunity to allude to mod_mp3
Post Reply