0.1.4 • Published 3 years ago

@youri-kane/react-audio-node v0.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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