Re: Problem by streaming big mp3-File

SoftwareDave <[email protected]> Mon, 6 Oct 2003 18:33:23 -0700 (PDT)
Newsgroups gmane.comp.web.ming.general
Message-ID <[email protected]>
Hi,

I dont know what happened with that function.  I think it would create a
 50meg flash with the mp3 embedded.

If your willing to use flash 6 and 0.3a-dev then this example will 
create a small flash movie and stream the mp3 file.

Try something like this in the button example.

It compiles on Win32, Perl 5.8, Ming 0.3a-dev.

It plays with Flash 6 on IE 6, Moz 1.4.

Streaming is good on cable/DSL but not so great on 56k. You wuold just 
need to make a loader that buffers enough before starting.

SWF::useSWFVersion(6);

#my $sng1='http://home.mayn.de/rhelms/KULTURFORUM_LINUX.MP3';
my $sng1='http://home.mayn.de/rhelms/KULTURFORUM_LINUX.MP3';
$m->add(new SWF::Action("sndClip1=new Sound();sndClip1.loadSound('$sng1',true);sndClip.setVolume(100);sndClip1.start();"));

--- Ruprecht Helms <[email protected]> wrote:
Hi,

how can I write a script that can stream me a big mp3-file. the file is
a cutting of a broadcastproduction and around 50 MB in Size.

By using an examplecode I get this error

Fatal error: Call to undefined function: streammp3() in
/usr/local/apache/htdocs/linuxsendung.php on line 4

Here the code:

<?
  $m = new SWFMovie();
  $m->setRate(12.0);
 
$m->streamMp3(fopen("http://home.mayn.de/rhelms/KULTURFORUM_LINUX.MP3",
"rb"));

  // 11.85 seconds at 12.0 fps = 142 frames
  $m->setFrames(141);

  header('Content-type: application/x-shockwave-flash');
  $m->output();
?>

How can I fix the problem.

Regards,
Ruprecht


_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun