1.1.1 • Published 3 years ago

@rubenchoi/webcam v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React library selecting webcam

NPM JavaScript Style Guide

React library for Webcam Selection. Please see document for further information. This project is created using create-react-library.

Install

npm install --save @rubenchoi/webcam

Usage

import React from 'react'
import { WebcamComponent } from '@rubenchoi/webcam';
import '@rubenchoi/webcam/dist/index.css'

const App = () => {
  const onStream = (stream) => console.log(stream);

  const onMute = (muted) => console.log(muted ? 'muted' : 'unmuted')

  return (
    <div>
      <h2>React App Webcam Test</h2>
      <div style={{ width: '40vw', margin: '1em' }}>
        <WebcamComponent onStream={onStream} onMute={onMute} audioTest={true} />
      </div>
    </div >
  )
}

export default App

License

MIT © rubenchoi

1.1.1

3 years ago

1.1.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago