Hi!
I`m not sure this is the right forum to post this but i need some help. :h:
I made a small php program that reades files in binary and streames them along the line.
I managed to make this stream images to flash, flash loads them, gets file size via Content-Length Header, then dispalys the image.
Now i go and try to do the same for mp3`s using standard Sound Class and i get nothing.
Let me see if i can make this a little clearer for you:
this is what i use for image-streaming (&downloads):
$fp = fopen($file,"r");
header("Content-Type: application/download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=".basename($filename));
fpassthru($fp);
and
read="http://someip/somefoleder/whatever.php?mode=stream&file="+Name;
my_mcl = new MovieClipLoader();
listen = new Object();
listen.onLoadComplete = function() {//gotoAndPlay ...
}
my_mcl.addListener(listen);
this.createEmptyMovieClip("pic", this.getNextHighestDepth());
my_mcl.loadClip(read,pic);
Now, this works fine with the whole set of attachment headers.
but when i try and stream [not flash stream/binary stream] a mp3 file intro flash using the same php function it does not work, furthermore i tryed changing the heders to Content-Type:audio/mpeg nothing
If anyone can help, i would really apreciate it! :jailbreak
oh, and here is the code for the sound loading
var sound = new Sound();
sound.loadSound("http://someip/somefoleder/whatever.php?mode=stream&file="+Name,false);
THANKS in advance! :kommie: