0.1.0 • Published 4 years ago

rc-player v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
4 years ago

rc-player

A simple react component to play and control audio file built on html5 element.

Installation and Usage

npm i rc-player

Props

PropTypeUsageNote
audioSourceaudio fileThe audio file that plays in componentREQUIRED
decrementPeriodNumberDecrement Period in seconds for fast backward playingdefault = 5
incrementPeriodNumberIncrement Period in seconds for fast forward playingdefault = 5
onIncrementFunctionFires in incrementing() => {}
onDecrementFunctionFires in decrementing() => {}
onPlayFunctionFires on play audio() => {}
onStopFunctionFires on stop audio() => {}
audioFunctionsObjectObjects with <audio> properties keys and their values are the functions{}
formatTimeFunctionFormat time function() => {}