react-hooks-audio
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

react-hooks-audio

suitable for use in React 16.x technology stack projects.

🚀 Features

  • Custom audio playback
  • Implemented based on React Hooks

🎉 Live demo

https://winfans.github.io/react-hooks-audio/

Installation

npm install --save react-hooks-audio

Usage

demo

import { useAudio } from 'react-hooks-audio';
const { playing, play, pause, currentTime, audioTime, setCurrentTime, init, rePlay } = useAudio({ value: 'xxx' });

Browser compatibility

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE11, Edge last 3 versions last 3 versions last 2 versions

Open source agreement

react-hooks-audio follow MIT License

Package Sidebar

Install

npm i react-hooks-audio

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

12 kB

Total Files

6

Last publish

Collaborators

  • winfans