A JavaScript library for capturing still images from camera(s) via modern browsers.
Modern-WebcamJS is a JavaScript library for capturing still images from camera(s) attached by your computer, and delivering them to you as JPEG or PNG Data URIs. The images data also can be objectURL . It uses HTML5 getUserMedia, so only modern browser such as FireFox, Chrome, Edge which supports navigator.mediaDevices.getUserMedia of HTML5 API supported.
npm install --save modern-webcamjs
- basic: https://webcam.waitingsong.com/basic.html
- basic async/await: https://webcam.waitingsong.com/basic_await.html
- large: https://webcam.waitingsong.com/large.html
- capture: https://webcam.waitingsong.com/auto_capture.html
- capture options: https://webcam.waitingsong.com/snap_opts.html
- capture objectURL: https://webcam.waitingsong.com/snap_objecturl.html
- dynamic capture options: https://webcam.waitingsong.com/dynamic_snap_opts.html
- multiple camera: https://webcam.waitingsong.com/multi_camera.html
- custome sidx: https://webcam.waitingsong.com/custome_sidx.html
- double preview: https://webcam.waitingsong.com/double_preview.html
- white list: https://webcam.waitingsong.com/camera_whitelist.html