infusion / jQuery-webcam

A webcam wrapper plugin for jQuery
http://www.xarg.org/project/jquery-webcam-plugin/
517 stars 273 forks source link

Custom compile only makes jscam.swf, not jscam_canvas_only.swf #4

Open cviebrock opened 13 years ago

cviebrock commented 13 years ago

Can you give some tips on make-ing a canvas-only version of the Flash file? I just want to recompile to change the cam dimensions.

Thanks!

infusion commented 13 years ago

It's enough to comment out

var e = new JPGEncoder(quality);

and comment in the return false. A recompilation generates the canvas-only version because all dependencies are not embedded.

Robert

brainhax commented 11 years ago

hi cviebrock ,

were u able to compile it for different dimension ? i tried as infusion said above but no luck .

if (file) {

// i commented the below line
/var e = new JPGEncoder(quality);/

                var sal = {};
                sal.sendAndLoad = XML.prototype.sendAndLoad;
                sal.contentType = "image/jpeg";
                sal.toString = function() {
                    return e.encode(JSCam.buffer);
                }

                var doc = new XML();
                doc.onLoad = function(success) {
                    ExternalInterface.call("webcam.onSave", "done", this.toString());
                }

                sal.sendAndLoad(file, doc);

/ ExternalInterface.call('webcam.debug', "error", "No save mode compiled in."); return false; / // and added the below line return false;

            }

if you can compile for me at 480*480 dimensions , will really appreciate . :