New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-audio-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-audio-component

Audio component for react

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

react-audio

Declerative Audio component for React

Installation

simply run npm install react-audio --save or clone the repository git clone https://github.com/farskid/react-audio.git.

Usage

import Audio into your component and use it.

  import React, {Component} from 'react'
  import Audio from 'react-audio'
  
  export default class MyComponent extends Component {
    render() {
      return (
        <Audio source="example/audio/path" loop={true} />
      )
    }
  }

Usefull props

The only required prop is source. There are also other helper props:

  • loop ==> Boolean ==> indicates whether the audio should be played infinite loop or not (It will pause during pause condition)
  • pause ==> statement which when gets true the audio will pause and will resume or play when it changes to false.

Keywords

audio

FAQs

Package last updated on 12 May 2017

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