react-webcam
Advanced tools
Comparing version 5.2.2 to 5.2.3
@@ -15,3 +15,3 @@ import * as React from "react"; | ||
onUserMedia: (stream: MediaStream) => void; | ||
onUserMediaError: (error: string) => void; | ||
onUserMediaError: (error: string | DOMException) => void; | ||
screenshotFormat: "image/webp" | "image/png" | "image/jpeg"; | ||
@@ -18,0 +18,0 @@ screenshotQuality: number; |
{ | ||
"name": "react-webcam", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"description": "React webcam component", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-webcam.js", |
@@ -8,2 +8,4 @@ # react-webcam | ||
**DEMO:** https://codepen.io/mozmorris/pen/JLZdoP | ||
https://www.npmjs.com/package/react-webcam | ||
@@ -14,8 +16,12 @@ | ||
Note: Browsers will throw an error if the page is loaded from insecure origin. I.e. Use https. | ||
**Note: Browsers will throw an error if the page is loaded from insecure origin. I.e. Use https.** | ||
## Installation | ||
``` | ||
```sh | ||
// with npm | ||
npm install react-webcam | ||
// with yarn | ||
yarn add react-webcam | ||
``` | ||
@@ -113,3 +119,3 @@ | ||
You can find an exammple [https://codepen.io/mozmorris/pen/yLYKzyp?editors=0010](https://codepen.io/mozmorris/pen/yLYKzyp?editors=0010). | ||
You can find an example [https://codepen.io/mozmorris/pen/yLYKzyp?editors=0010](https://codepen.io/mozmorris/pen/yLYKzyp?editors=0010). | ||
@@ -116,0 +122,0 @@ ## Choosing a camera |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160315
204