[英]jquery webcam plugin picture
i am trying to use the jquery webcam plugin and i believe i have placed every thing right but still i have a problem . 我正在尝试使用jquery网络摄像头插件,我相信我已经把所有东西放好了,但仍然有问题。
thought the #webcam div is working fine and show frames from the cam but on clicking capture no image is taken i get the following error on the chrome console : Uncaught TypeError: Object # has no method 'capture' 以为#webcam div工作正常并显示凸轮中的帧,但单击捕获后未拍摄图像,我在chrome控制台上收到以下错误:Uncaught TypeError:Object#has no method'capture'
there are similar questions here but none seems to solve my problem i have placed the callbacks too . 这里也有类似的问题,但似乎没有一个解决我的问题的我也放置了回调。
jQuery("#webcam").webcam({
width: 320,
height: 240,
mode: "callback",
swffile: "../jcam/jscam_canvas_only.swf",
onTick: function(remain) {
},
onSave: function(data) {...
}
},
onCapture: function () {....
},
debug: function (type, string) {
},
onLoad: function () {.......
}
}
});
Try this 尝试这个
$(function(){ $(function(){
jQuery("#webcam").webcam({
width: 320,
height: 240,
mode: "callback",
swffile: "../jcam/jscam_canvas_only.swf",
onTick: function(remain) {
},
onSave: function(data) {...
}
},
onCapture: function () {....
},
debug: function (type, string) {
},
onLoad: function () {.......
}
}
});
}); });
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.