HTML webcam with AngularJS
<webcam></webcam>
It is that simple.
The camera of the user is accessed using the getUserMedia specification. Therefore, it won't work in all browsers before they agree on the implementation.
That element is everything you need to render the user's webcam.
But if you want to, you can access the camera stream directly or the rendered video element using simple callbacks.
Take a look at some demos first or go directly to the source code.
Don't be shy, try it! Then let the world know what kind of amazing stuff you did. :-)
Written by Jonas Hartmann
Related protips
2 Responses
Hi, your directive is fucking awesome! Thank you.
Now we just need Apple and Microsoft to get their shit together and implement webRTC.
Perfect for my Problem
Have a fresh tip? Share with Coderwall community!
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside