jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

capture two photos #235

Open avilac3 opened 7 years ago

avilac3 commented 7 years ago

What is the suitable way to be able to capture 2 or more images with webcamjs thanks

jhuckaby commented 7 years ago

Not sure if I understand your question. This demo shows how you can capture multiple photos (in this case continuous):

https://pixlcore.com/demos/webcamjs/demos/continuous.html

Does that help?

avilac3 commented 7 years ago

sorry my idea is used 2 or more buttons to capture photos In the same page

foto1

jhuckaby commented 7 years ago

Unfortunately WebcamJS can only be instantiated one time on a given page. You could consider using IFRAMEs, or see this discussion in issue #63:

https://github.com/jhuckaby/webcamjs/issues/63

Looks like someone got it working at the very bottom? I have not tried it myself tho.

Good luck!