O'Reilly logo

Mastering jQuery by Alex Libby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Capturing and manipulating webcam images

In our second and final demo for this chapter, we're going to have some fun with a webcam – one of the ways we can acquire and manipulate images is to source them from a laptop or stand-alone webcam.

The key to this demo lies in the use of getUserMedia, which allows us to control audio or video feeds. This is a relatively young API, which requires use of vendor prefixes to ensure full support. As with other APIs, the need for them will disappear over time, so it is worth checking http://caniuse.com/#search=getusermedia regularly to see if support has been updated and the need for prefixes removed.

This demo will bring together some of the concepts we've explored, such as applying filters, saving canvas images ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required