1.1.1 • Published 2 years ago

react-audio-control-z v1.1.1

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

Description

  • React simple control for record audio.
  • You can use it with some libs. (ex: react-media-recorder, ...)

Usage

npm install react-audio-control-z

Import the module in the place you want to use:

import RecordControl from 'react-audio-control-z'

Snippet

simple
    const [current, setCurrent] = useState(0)

    <br />
    {current}
    <br />
    <RecordControl
        lengthTime={60}
        durationTick={1000} // section
        setValue={setCurrent}
        // onStarting={() => {}}
        // onPausing={() => {}}
        // onReset={() => {}}
        // onCompleted={() => {}}
        // ...
    />

props

see in index.d.ts

RUN

LIVE EXAMPLE

npm install
npm run dev
npm run start

License

MIT