帮助CamCanvas的MTASC和SWFMill

帮助CamCanvas的MTASC和SWFMill

本文介绍了帮助CamCanvas的MTASC和SWFMill的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图在本地编译以下代码:



这是camcanvas一个javascript api的摄像头。无论如何,它的build.sh重制了JavaScript调用的swf。

git克隆版本库并安装了mtasc和swfmill运行./build.sh



build.sh文件如下所示:



在swf文件夹中有一个新的swf,但是它的大小为869字节,并且不起作用,而示例文件夹中的swfs是1.89千字节并且可以工作....所以,在构建过程中,一定会出现问题。 p>

当我尝试使用新的swf时,页面并不要求我允许使用相机和麦克风 - 它根本不会显示任何视频....帮助!



有人可以尝试做我所做的事情,看看他们能否确定我做错了什么。



感谢,

Andy

解决方案

  swfmill简单的library.xml camcanvas.swf 
mtasc -version 8 -swf camcanvas.swf -main camcanvas.as

但是,如果更新原始camcanvas:

  copy Originalcamcanvas.swf camcanvas.swf 
mtasc -version 8 -swf camcanvas.swf - main camcanvas.as

使用2进程,camcanvas.swf的大小为819字节



如果反编译为: swfmill swf2xml camcanvas.swf> camcanvas.txt



你有2个类似的文本文件,968行,有2个不同点:$ b​​
$ b

第14行: DefineSprite objectID =** 1 * *frames =1 ==> DefineSprite objectID =** 2 **frames =1



符号objectID =** 1 **name =ObjetVideo。 。 。 。 ==> 符号objectID =** 2 **name =ObjetVideo



这足以阻止Flash。



我没有找到library.xml的良好修正。所以,如果你有一个想法... ...

Hey folks wondering if you can help me.

I am trying to compile locally the following: https://github.com/taboca/CamCanvas-API-

This is camcanvas a javascript api for a webcam. Anyhow - its build.sh remakes the swf for which the javascript makes calls to.

I git clone the repository and having installed mtasc and swfmill run ./build.sh

the build.sh file looks like this : https://github.com/taboca/CamCanvas-API-/blob/master/build.sh

This creates a new swf in the swf folder, however it is sized at 869 bytes and does not work, whereas the swfs in the examples folder are 1.89 KiloBytes and do work....so something must be going wrong with my build process.

When I go to try the new swf, the page does not ask me to allow the camera and microphone - it simply does not show any video at all.... help!

Can somebody please try to do what I have done and see if they can determine what I am doing wrong.

Thanks,

Andy

解决方案

It's not usable with the script that they provide:

swfmill simple library.xml camcanvas.swf
mtasc -version 8 -swf camcanvas.swf -main camcanvas.as

But it's usable if you update the original camcanvas with:

copy Originalcamcanvas.swf camcanvas.swf
mtasc -version 8 -swf  camcanvas.swf -main camcanvas.as

With the 2 process, the size of camcanvas.swf is 819 bytes

If you decompile with: swfmill swf2xml camcanvas.swf >camcanvas.txt

You have 2 similar text file with 968 lines with 2 differences:

Line 14 : DefineSprite objectID="**1**" frames="1" ==> DefineSprite objectID="**2**" frames="1"

Line 21 : Symbol objectID="**1**" name="ObjetVideo" . . . . ==> Symbol objectID="**2**" name="ObjetVideo"

And it’s enough to block the Flash.

I didn’t find the good correction of "library.xml". So if you have an idea…

这篇关于帮助CamCanvas的MTASC和SWFMill的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 08:09