O'Reilly logo

Cross-Platform Desktop Applications: Using Node, Electron, and NW.js by Paul B. Jensen

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

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

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