1.1.0 • Published 4 years ago

use-simple-audio v1.1.0

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

use-simple-audio

NPM

Install

npm install --save use-simple-audio

Usage

import * as React from 'react';
import useSimpleAudio from 'use-simple-audio';

const App = () => {
  const { play, pause, stop } = useSimpleAudio('/sample.mp3', true);

  return (
    <div>
      <button onClick={play}>PLAY</button>
      <button onClick={pause}>PAUSE</button>
      <button onClick={stop}>STOP</button>
    </div>
  );
};

License

MIT © ossan-engineer


This hook is created using create-react-hook.

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago