[PHP] Pb with MP3 streaming with Flash Object swfmovie()

2001-07-13 Thread octopussy

Hi all,
I'm trying to make some MP3 streaming with my Apache Web Server and PHP
since I discovered the instruction streammp3($filename) in the swfmovie
object.
But can't make it work!
Anybody else tryied to use this feature or did I miss something?

Octopussy!

?
// Streaming MP3 Test
$mp3_file = sounds/test.mp3;
$m = new SWFMovie();
//$m-setRate(12.0);
$m-streamMp3(fopen($mp3_file,r));
//$m-setFrames(141);
header('Content-type: application/x-shockwave-flash');
$m-output();
?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] StreamMp3 from ming extension doesn't work!!!

2001-07-10 Thread octopussy

Hi there!

I'm trying a functionality from the ming library (Flash extension) that is 
swfmovie()-streammp3(file). This allows the streaming of an mp3 file from a web 
server... In fact, that is what it is supposed to do!

The pb is that it doesn't work. Does anybody try it successfuly ?
Thanks

Octopussy.

My peace of code:

?
$m = new SWFMovie();
$m-streamMp3(test.mp3);
header('Content-type: application/x-shockwave-flash');
$m-output();
?

My configuration:
  a.. Apache 1.3.20 under Windows XP RC1
  b.. PHP 4.0.5RC1