Description
react-howler is a React component that wraps howler.js, a JavaScript audio library. It lets you play, pause, loop, mute and adjust the volume or playback rate of audio from React code, using props instead of calling howler.js directly. The wrapper has no user interface, so you build the player controls yourself. Props include src, which takes one or more audio sources in order of preference, plus preload, playing, loop, mute, volume, rate, html5 and format. Changing src on the fly stops the current sound and creates a new one, while changing other props keeps the same sound going. howler.js uses the Web Audio API by default and falls back to HTML5 Audio, and the html5 prop forces HTML5 Audio for large files. Events such as load, play and end can be handled as well. It is installed from npm, and its source is public on GitHub.…
Highlights
- React component wrapper for howler.js
- Playback props for play, loop, mute, volume and rate
- No built-in UI, so you build your own controls
- Option to force HTML5 Audio for large files
Ratings & Reviews
No ratings yet
Be the first to rate react-howler.
People also visit
react-howler FAQ
What is react-howler?
A React wrapper around howler.js that plays audio through component props, so you can control playback from your React code.
How do I install it?
Run npm install --save react-howler in your project.
Does it come with player controls?
No. The README says it has no UI, so you provide your own controls and use the props and events to drive them.
What does the src prop accept?
One or more sources, in order of preference, as URLs or base64 data URIs. Use the format prop if the files have no extension.
Is it open source?
The source code is public on GitHub. The page text does not show a license, so check the repository before reuse.
What are the best react-howler alternatives?
Popular alternatives to react-howler include react-player, audiocn and @u-wave/react-vimeo. See all react-howler alternatives
















