@youri-kane/react-audio-node
v0.1.4
Published
React wrapper for the HTML5 <audio/> tag
Downloads
3
Readme
React Audio Node
Purpose
This package is a React.js wrapper for the audio tag. It is written in typescript.
Install
npx install @youri-kane/react-audio-node
Usage
import { AudioNode } from '@youri-kane/react-audio-node';
const CustomPlayer = () => {
return <AudioNode
muted={true}
volume={1}
playState="playing"
onLoadedMetadata={() => {}}
onPlayStateChange={() => {}}
onCurrentTimeChange={() => {}}
onBufferedChange={() => {}}
onPlayableStateChange={() => {}}
source="https://example.com/audio.mp3"
/>
}