{"repo":"mozmorris/react-webcam","free":true,"listed":false,"github":"https://github.com/mozmorris/react-webcam","clone":"git clone https://github.com/mozmorris/react-webcam.git","description":"Webcam component","language":"TypeScript","stars":1751,"topics":["reactjs","webcam-component","react","getusermedia","webcam"],"license":"MIT","category":"ui-components","readme_excerpt":"react-webcam [![Build Status][build-badge]][build] ![downloads][downloads-badge] DEMO: https://codepen.io/mozmorris/pen/JLZdoP https://www.npmjs.com/package/react-webcam Webcam component for React. See http://caniuse.com/#feat=stream for browser compatibility. Note: Browsers will throw an error if the page is loaded from insecure origin. I.e. Use https. Installation Demo https://codepen.io/mozmorris/pen/JLZdoP Usage Props The props here are specific to this component but one can pass any prop to the underlying video tag eg className , style , muted , etc prop type default notes --------------------------- ---------- -------------- ----------------------------------------------------------------------------------------- audio boolean false enable/disable audio audioConstraints object MediaStreamConstraint(s) for the audio disablePictureInPicture boolean false disable Picture-in-Picture forceScreenshotSourceSize boolean false uses size of underlying source video stream (and thus ignores other size related props) imageSmoothing boolean true pixel smoothing of the screenshot taken mirrored boolean false show camera preview and get the screenshot mirrored minScreenshotHeight number min height of screenshot minScreenshotWidth number min width of screenshot onUserMedia function noop callback for when component receives a media stream onUserMediaError function noop callback for when component can't receive a media stream with MediaStreamError param screenshotFormat string 'image/webp","default_branch":null,"files":null,"tree":[],"storefront":"/r/mozmorris","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mozmorris/react-webcam/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}