Last Updated: February 25, 2016
·
25.47K
· jonashartmann

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. :-)

2 Responses
Add your response

Hi, your directive is fucking awesome! Thank you.

Now we just need Apple and Microsoft to get their shit together and implement webRTC.

over 1 year ago ·

Perfect for my Problem

over 1 year ago ·