rc-player

0.1.0 • Public • Published

rc-player

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

Installation and Usage

npm i rc-player

Props

Prop Type Usage Note
audioSource audio file The audio file that plays in component REQUIRED
decrementPeriod Number Decrement Period in seconds for fast backward playing default = 5
incrementPeriod Number Increment Period in seconds for fast forward playing default = 5
onIncrement Function Fires in incrementing () => {}
onDecrement Function Fires in decrementing () => {}
onPlay Function Fires on play audio () => {}
onStop Function Fires on stop audio () => {}
audioFunctions Object Objects with <audio> properties keys and their values are the functions {}
formatTime Function Format time function () => {}

Readme

Keywords

Package Sidebar

Install

npm i rc-player

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

15.9 kB

Total Files

3

Last publish

Collaborators

  • zeyadetman