0.1.2 • Published 4 years ago

react-audio-visuals v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

React-Audio-Visuals

Made with create-react-library

Originally created by soniaboller: https://soniaboller.github.io/audible-visuals/

NPM

Install

npm install --save react-audio-visuals

Usage

You must set the ref on the audio sequentially before for rendering the Visualizer for now

import React, { useRef } from 'react'
import Visualizer from 'react-audio-visuals'

const Example = () => {
  const audioRef = useRef(null)
    return (
      <>
        <audio src={"src"} ref={audioRef} controls />
        <Visualizer audioRef={audioRef} />
      </>
    )
  }
}

License

MIT © sharad-pizza-hut