1.0.0 • Published 3 years ago

react-webcam-onfido v1.0.0

Weekly downloads
1,267
License
MIT
Repository
github
Last release
3 years ago

react-webcam

Webcam component for React. See this for browser compatibility.

Installation

npm install react-webcam

Demo

https://cezary.github.io/react-webcam/examples (if demo doesn't work, check browser compatibility and verify browser is using https)

Usage

import React from 'react';
import Webcam from 'react-webcam';

class Component extends React.Component {
  render() {
    return <Webcam/>;
  }
}

Props

proptypedefaultnotes
classNamestring''CSS class of video element
audiobooleanfalseenable/disable audio
heightnumber480height of video element
widthnumber640width of video element
facingModestring''Facing mode of the camera. It can be user or environment
screenshotFormatstring'image/webp'format of screenshot
onUserMediafunctionnoopcallback when component receives a media stream
onFailurefunctionnoopCallback in case an error happens, no getUserMedia for example

Global functions

functionnotes
getScreenshotreturns one frame of the stream
getCanvasreturns a canvas with the same size as the video element
startRecordingstarts the recording
stopRecordingstops the recording
getVideoBlobreturns the video blob for the recorded video

License

MIT

1.0.0

3 years ago

0.1.28

3 years ago

0.1.27

4 years ago

0.1.26

4 years ago

0.1.24

4 years ago

0.1.25

4 years ago

0.1.23

5 years ago

0.1.21

5 years ago

0.1.22

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.12-rc1

6 years ago

0.1.11

6 years ago

0.1.11-rc1

6 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.7-rc1

7 years ago

0.1.6

7 years ago

0.1.6-rc.1

7 years ago

0.1.5

7 years ago

0.1.5-rc.1

7 years ago

0.1.4

7 years ago

0.1.4-rc.1

7 years ago

0.1.3

7 years ago

0.1.3-rc.1

7 years ago

0.1.2

7 years ago

0.1.2-rc.1

7 years ago

0.1.1

7 years ago

0.1.1-rc1

7 years ago

0.1.0

7 years ago

0.1.0-rc.1

7 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

9 years ago

0.0.1-7.R1

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago