is this possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
     I'm very new to using  ming. I compiled it on my LAMP environment and in the process of creating a swf file.
I'm easily able to encode a video in a swf file and play it in my browser, but what I'm really trying to accomplish is to play more then one video using action script.

Here is what I have so far.....I've tried both the output method and save method. Down below I tried adding the same movie clip right after the first one, without success. Is it possible to play one video after another?

I unfortunately haven't had much luck in finding a lot of documentation with this type of situation.

Appricate any assistance. Thanks.

Tom


Ming_setScale(10.0000000);
ming_useswfversion(7);

$movie = new SWFMovie(7);
$movie->setDimension(320,240);
//$movie->setBackground(0×33,0×33,0×33);
$movie->setRate(8);

$strAction = "
stop();
netConn=new NetConnection();
netConn.connect(null);
vStream=new NetStream(netConn);
video1.attachVideo(vStream);
vStream.setBufferTime(10);
vStream.play('http://192.168.3.101/play.flv');
";

$stream = new SWFVideoStream();
$item=$movie->add($stream);
$item->setname("video1");
$movie->add(new SWFAction($strAction));
//var_dump($stream->getNumFrames());
//for($i = 0; $i < $stream->getNumFrames(); $i++) {
    //$movie->nextFrame();
//    if ($i == ($stream->getNumFrames()-1)) {
//        $movie->add(new SWFAction($strAction));
//    }
//}
//$movie->nextFrame();

//$movie->save("videostream.swf");

  header('Content-type: application/x-shockwave-flash');
  $movie->nextFrame();
  $movie->add(new SWFAction($strAction));     
  $movie->nextFrame();
  $movie->add(new SWFAction($strAction));

  $movie->output();

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux