0.1.11 • Published 7 years ago

darn-simple-audio v0.1.11

Weekly downloads
7
License
MIT
Repository
github
Last release
7 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

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago