jQuery-webcam icon indicating copy to clipboard operation
jQuery-webcam copied to clipboard

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

Open cviebrock opened this issue 14 years ago • 2 comments
trafficstars

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!

cviebrock avatar Oct 23 '11 04:10 cviebrock

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

infusion avatar Oct 23 '11 23:10 infusion

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 . :

brainhax avatar Jul 16 '13 11:07 brainhax