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:
But it's usable if you update the original camcanvas with:
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…