Chapter 11. Using a webcam in your application

This chapter covers

  • Accessing the webcam on your computer
  • Creating still images from live video
  • Saving the still images to your computer

Not many years ago, webcams were external devices that you bought to plug into your computer and used to chat with friends and family. Today, almost all laptops come with webcams and microphones built in, making it easy for people to travel and communicate with each other, as long as they have a good internet connection. Back then, the only way you could access a webcam feed was via a desktop app, or by using Adobe Flash. There wasn’t an easy way to do it over a web browser.

But that changed. With the introduction of the HTML5 Media Capture API, webcams ...

Get Cross-Platform Desktop Applications: Using Node, Electron, and NW.js now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.