jquery-webcam-plugin

Unable to access the WebCam

二次信任 提交于 2020-06-29 05:29:06
问题 (function ($) { var webcam = { "extern": null, // external select token to support jQuery dialogs "append": true, // append object instead of overwriting "width": 320, "height": 240, "mode": "callback", // callback | save | stream "swffile": "../Webcam_Plugin/jscam_canvas_only.swf", "quality": 85, "debug": function () {}, "onCapture": function () {}, "onTick": function () {}, "onSave": function () {}, "onLoad": function () {} }; window["webcam"] = webcam; $["fn"]["webcam"] = function(options)

jquery webcam plugin TypeError: webcam.capture is not a function thrown occasionally

前提是你 提交于 2019-12-14 03:59:36
问题 Quite often I am getting the error above per the subject line. The piece of code that this is thrown at is as follows (the function in the else section). if ($('#clicktosnap').is('.disabled')) { alert ("Please enable the camera first, then press allow on the dialog above."); } else { webcam.capture(); } I have tried moving the code in a beginning script tag and at in the end as well (pre and post initialization with no joy) the things is that this doesn't happen all the time so I am confused,