Re: Stream mp3 function taken away?

gaz b <[email protected]> Thu, 23 Oct 2003 08:17:57 -0700 (PDT)
Newsgroups gmane.comp.web.ming.general
Message-ID <[email protected]>
First thought is that you could try some different
code to call streammp3. The example below compiles on
ming 0.3a and I think may compile on 0.2a also.
<?
// some typical movie variables
$movie=new SWFMovie();
$movie->setDimension(550,400);
$movie->setBackground(0xcc,0xcc,0xcc);
$movie->setRate(31); 
// move along a few frames
for($i=0;$i<5;$i++){$movie->nextFrame();}
// open the mp3 file
$snd = fopen("boomb.mp3", "rb");
// add the mp3 to the movie
$movie->streamMp3($snd);
// close the mp3 file
fclose($snd);
// set movie total number of frames
$movie->setFrames(62);
// save movie
$movie->save("streammp3.swf");
?>

Alternately maybe you could compile a new ming from
cvs so that you are using 0.3a instead of 0.2. I have
had success with this using php 4.2.3 on linux and on
windows maybe you could use Kromann's files
:http://kromann.info/php4.php

Also I have a php_ming.so compiled from cvs Aug 2003
against php 4.2.3 linked on the homepage of my site :
http://www16.brinkster.com/gazb/ming/
maybe you could grab that and try it out and see if it
helps.




__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com