Esempio n. 1
0
#!/usr/bin/php -c.
<?php 
$srcdir = $argv[1];
$m = new SWFMovie(7);
$stream = new SWFVideoStream($srcdir . "/../Media/video01.flv");
$numFrames = $stream->getNumFrames();
$mc = new SWFMovieClip();
$mc->add($stream);
for ($i = 0; $i < $numFrames; $i++) {
    $mc->nextFrame();
}
$m->add($mc);
$m->save("test05.swf");
Esempio n. 2
0
#!/usr/bin/php -c.
<?php 
$srcdir = $argv[1];
$m = new SWFMovie(7);
$stream = new SWFVideoStream($srcdir . "/../Media/video01.flv");
$stream->setDimension(200, 200);
$stream->setFrameMode(SWF_VIDEOSTREAM_MODE_MANUAL);
$m->add($stream);
$numFrames = $stream->getNumFrames();
for ($i = 0; $i < $numFrames; $i++) {
    if ($i % 2) {
        $stream->nextFrame();
    }
    $m->nextFrame();
}
$m->save("test04.swf");
Esempio n. 3
0
#!/usr/bin/php -c.
<?php 
$srcdir = $argv[1];
$m = new SWFMovie(7);
$m->setRate(1);
$m->setDimension(200, 150);
$stream1 = new SWFVideoStream();
$stream1->setDimension(200, 150);
$it = $m->add($stream1);
$it->setName("video");
$action = new SWFAction("\n\tnc = new NetConnection ();\n\tnc.connect (null);\n\tns = new NetStream (nc);\n\tvideo.attachVideo (ns);\n\tns.play (\"video.flv\");\n");
$m->add($action);
$m->save("test03.swf");