diff --git a/README.md b/README.md index 9f7a01e..298c6fc 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ The props here are specific to this component but one can pass any prop to the u | mirrored | boolean | false | show camera preview and get the screenshot mirrored | | minScreenshotHeight | number | | min height of screenshot | | minScreenshotWidth | number | | min width of screenshot | +| mutePreview | boolean | true | mute/unmute video preview | | 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' | format of screenshot | diff --git a/src/__tests__/react-webcam.test.tsx b/src/__tests__/react-webcam.test.tsx index 0937a46..2293c73 100644 --- a/src/__tests__/react-webcam.test.tsx +++ b/src/__tests__/react-webcam.test.tsx @@ -33,7 +33,7 @@ it('renders correctly', () => { expect(tree.toJSON()).toMatchSnapshot(); }); -it('sets