I am using the webcamjs script to capture the webcam images for my application. its working good. My application needs a new feature called Burst capture like in mobiles and some cameras. I tried t loop thru’ and called the webcamjs’s snap repeatedly but i got the same images instead of diffrent one
My application is fully based on MVC, HTML and javascript.
The code i am trying to use it for burst capture
function burst_snapshot(burstcount,passedName) {
for (var i = 0; i < burstcount; i++) {
Webcam.burst_snap(function (dataurl) {
var arrayindex = passedName + "_" + i;
sleep(1000);
burstcapturedata[arrayindex] = dataurl;
}, i);
}
}
burstcapturedata is an array to capture the returned burst data, that i need to show in a diffrent control(modal dialog)
burstcount is the count , i get it from the user