⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 video.cgi

📁 Ming is a library for generating Macromedia Flash files (.swf), written in C, and includes useful ut
💻 CGI
字号:
#!/usr/bin/perluse strict;#use lib("/home/peter/ming3/lib/perl5/site_perl");$|=1;use SWF qw(:ALL);my $file = '../common/test.flv';my $stream=new SWF::VideoStream($file);$stream->setDimension(200,200);my $m=new SWF::Movie();$m->setDimension(400, 300);$m->setRate(12.0);$m->add($stream);for(1..$stream->getNumFrames()) {	$m->nextFrame();}# decide if its called from commandline or as cgiscriptif (exists $ENV{"REQUEST_URI"}){	print "Content-type: application/x-shockwave-flash\n\n";	$m->output();}else {	$m->save("$0.swf");	print "Generated file written to $0.swf\n";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -