# Modern-WebcamJS
----
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](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs).  The images data also can be [objectURL](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) .  It uses [HTML5 getUserMedia](http://dev.w3.org/2011/webrtc/editor/getusermedia.html), so only modern browser such as FireFox, Chrome, Edge which supports navigator.mediaDevices.getUserMedia of HTML5 API supported.

## DEMO:
- basic: https://webcam.xiaozhong.biz/basic.html
- basic async/await: https://webcam.xiaozhong.biz/basic_await.html
- large: https://webcam.xiaozhong.biz/large.html
- capture: https://webcam.xiaozhong.biz/auto_capture.html
- capture options: https://webcam.xiaozhong.biz/snap_opts.html
- capture objectURL: https://webcam.xiaozhong.biz/snap_objecturl.html
- dynamic capture options: https://webcam.xiaozhong.biz/dynamic_snap_opts.html
- multiple camera: https://webcam.xiaozhong.biz/multi_camera.html
- custome sidx: https://webcam.xiaozhong.biz/custome_sidx.html
- double preview: https://webcam.xiaozhong.biz/double_preview.html
- white list: https://webcam.xiaozhong.biz/camera_whitelist.html



## License
[MIT](LICENSE)