https://github.com/waitingsong/modern-webcamjs
https://github.com/waitingsong/modern-webcamjs
es6 getusermedia webcamera
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/waitingsong/modern-webcamjs
- Owner: waitingsong
- License: mit
- Created: 2017-09-19T12:09:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T12:01:23.000Z (about 8 years ago)
- Last Synced: 2024-04-24T16:59:02.824Z (about 2 years ago)
- Topics: es6, getusermedia, webcamera
- Language: TypeScript
- Size: 112 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Modern-WebcamJS
A JavaScript library for capturing still images from camera(s) via modern browsers.
[](https://www.npmjs.com/package/modern-webcamjs)
[](https://opensource.org/licenses/MIT)
## What can I do with this?
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.
## Installing
```powershell
npm install --save modern-webcamjs
```
## DEMO:
- 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
## License
[MIT](LICENSE)