0.1.11 • Published 6 years ago

darn-simple-audio v0.1.11

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

darn-simple-audio

Simple yet customizable audio player component for react

Install

npm install darn-simple-audio --save

Usage

import React from "react";

import { SingleAudioPlayer } from "darn-simple-audio";

class App extends React.Component {

  render() {
    return (
      <SingleAudioPlayer source={this.props.audioUrl} />
    );
  }
}

export default App;

Props

SingleAudioPlayer

propstypedefault
autoPlaybooleantrue
showControlsbooleantrue
showReplaybooleantrue
showPausebooleantrue
widthnumber / string280
heightnumber / string280
sourcestring""
albumArtURL (string)""
playIconstring / func / element
pauseIconstring / func / element
replayIconstring / func / element
onCurrentTimeChangefunc
onTotalDurationChangefunc

Who's using it

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago