Socket
Socket
Sign inDemoInstall

rc-player

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-player

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


Version published
Maintainers
1
Created
Source

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() => {}

Keywords

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc