react-raw-recorder
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

React Raw Recorder

React wrapper for Raw Media Recorder

Install

yarn add react-raw-recorder

or

npm install react-raw-recorder

Usage

import Recorder from "react-raw-recorder"
 
// ...
 
<Recorder
  audioContext={this.audioCtx}
  onRecording={() => console.log("recording in progress")}
  onRecorded={audio => console.log("recorded AudioBuffer", audio)}
>
  {recorder => (
    <button
      className={classNames("recorder-button", {
        recording: recorder.recording
      })}
      onClick={recorder.toggle}
    >
      <i className="fa fa-4x fa-microphone" />
    </button>
  )}
</Recorder>

/react-raw-recorder/

    Package Sidebar

    Install

    npm i react-raw-recorder

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • szastupov