This is an AngularJS directive that can be added as a module to your own app.
Demos can be found at http://jonashartmann.github.io/webcam-directive
-
Fork and clone this repository
-
Install dependencies
npm install
-
Build/test with grunt
grunt test
-
Make a Pull Request (it will only be merged if it passes the Travis build)
Or just help by creating issues.
Using Bower
bower install webcam-directive
Ex.: dist/webcam.min.js
<script type="text/javascript" src="webcam.min.js"></script>
angular.module('myapp', ['webcam']);
<webcam></webcam>
<webcam on-stream="onStream(stream)"
on-error="onError(err)"
on-streaming="onSuccess()"
video="your.video">
</webcam>
<webcam placeholder="'img/ajax-loader.gif'">
The code is licensed under the MIT License. @see LICENSE file