webcamjs icon indicating copy to clipboard operation
webcamjs copied to clipboard

Webcam.Snap firing more than once

Open evvo1961 opened this issue 2 years ago • 0 comments

I have a scenario whereby on first load of page, the webcam correctly takes x number of photos and these show in the page.

However on subsequent loads of the camera the Snap function is firing an additional time on a single Take Photo click.

So if i took 2 photos initially i then have 2 photos BUT on next camera launch a single click fires the Snap twice so my photos are constantly doubled.

Then on 3rd load of camera eeach click is firing the Snap 3 times and on and on....

I am clearing my div the camera attaches to, i am resetting the webcam after Save but still getting this issue...

Does anyone know how to fix this?

evvo1961 avatar Nov 12 '21 12:11 evvo1961