react-audio-control-z
v1.1.1
Published
React simple control for record (audio).
Downloads
2
Maintainers
Readme
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