@youri-kane/react-audio-node

0.1.4 • Public • Published

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"
    />
}

Readme

Keywords

Package Sidebar

Install

npm i @youri-kane/react-audio-node

Weekly Downloads

0

Version

0.1.4

License

ISC

Unpacked Size

13.8 kB

Total Files

5

Last publish

Collaborators

  • youri-kane