Stream mp3 function taken away?
"Joshua Beall" <[email protected]> Wed, 22 Oct 2003 11:18:07 -0400
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <003d01c398af$b2abd410$0b00a8c0@CTHONIA> |
I just upgrade from PHP 4.3.0 to PHP 4.3.3, and now when I try to use
the streammp3 function, I get the following error:
Fatal error: Call to undefined function: streammp3() in
/home/HE/web_develop/company_home/www/pages/dev/ming.php on line 29
It seems that other ming functions seem to work fine. Below is the code
that produces the above error. Comment out line 29, and it works fine
(you get a rotating red box.
The only thing I changed when I recompiled PHP was my configure: I
compiled 4.3.0 with libpdf, 4.3.3 I did not. Both were compiled
'--with-ming', and ming does indeed show up in phpinfo(). Version 0.2a.
Any thoughts?
<?php
$s = new SWFShape();
$s->setRightFill($s->addFill(0xff, 0, 0));
$s->movePenTo(-50,-50);
$s->drawLineTo(50,-50);
$s->drawLineTo(50,50);
$s->drawLineTo(-50,50);
$s->drawLineTo(-50,-50);
$p = new SWFSprite();
$i = $p->add($s);
for($j=0; $j<17; ++$j)
{
$p->nextFrame();
$i->rotate(5);
}
$p->nextFrame();
$m = new SWFMovie();
$i = $m->add($p);
$i->moveTo(160,120);
$i->setName("blah");
$m->setBackground(0xff, 0xff, 0xff);
$m->setDimension(320,240);
$m->setRate(12.0);
$m->setFrames(2772);
$m->streammp3(fopen("data/song.mp3", "r"));
header('Content-type: application/x-shockwave-flash');
$m->output();
?>