Skip to content
R

react-webcam

React webcam component

by mozmorrisFree

#153in UI Libraries
0In stores

Description

react-webcam is a React component that shows a live webcam feed on your page and lets you take screenshots from it. You render the Webcam co…

Highlights

  • Live webcam preview in React
  • Screenshots with format and quality settings
  • Mirrored view and optional audio
  • Callbacks for stream success and errors
  • Passes extra props to the video element

Ratings & Reviews

No ratings yet

Be the first to rate react-webcam.

People also visit

R

react-cropper

Cropper as React Component

UI Libraries
Launch
R

react-image-gallery

Responsive image gallery, carousel, image slider react component

UI Libraries
Launch
R

react-image-crop

A responsive image cropping tool for React

UI Libraries
Launch
R

react-imgix

Add fast, responsive images as an image, picture, or background!

UI Libraries
Launch
R

react-images-viewer

Create an react-images-viewer component

UI Libraries
Launch
R

react-on-screen

A wrapper component to track if your react component is visible on screen

UI Libraries
Launch

react-webcam FAQ

What does react-webcam do?

It shows a live webcam feed in a React page and can take screenshots from it.

Why does the camera not start on my site?

The README says browsers throw an error when a page is loaded from an insecure origin, so serve the page over HTTPS.

What screenshot formats are supported?

The screenshotFormat prop defaults to image/webp, and screenshotQuality defaults to 0.92 on a scale from 0 to 1.

How do I install it?

From npm. The README also links to a CodePen demo.

Is it free?

The source is public on GitHub, so the library is open source.

What are the best react-webcam alternatives?

Popular alternatives to react-webcam include react-cropper, react-image-gallery and react-image-crop. See all react-webcam alternatives

Developer Stuff

Badges