1.1.2 • Published 8 years ago

react-cassette-player v1.1.2

Weekly downloads
12
License
GPLv2
Repository
github
Last release
8 years ago

react-cassette-player

Build Status

screenshot

Demo @ https://chadpaulson.github.io/react-cassette-player

Install

npm install react-cassette-player

Basic Usage

var React = require('react')
var ReactDOM = require('react-dom')
var Cassette = require('react-cassette-player')

var audio = 'http://www.krecs.com/media/samples/sam_klp002_07_crashingthrough.mp3'
ReactDOM.render(<Cassette src={audio} />, document.body)

Props

srcRequired: URI of HTML5 audio resource you wish to play.
preloadOptional: metadata (default), auto or none.
mimeTypeOptional: audio/mpeg (default), audio/ogg or audio/wav string.
cassetteColorOptional: RGB or HEX string.
labelColorOptional: RGB or HEX string.
tapeColorOptional: RGB or HEX string.
controlsColorOptional: RGB or HEX string.
containerClassOptional: react-cassette-player (default) string.
scaleMethodOptional: meet (default) or slice string. See preserveAspectRatio.

All props can be referenced in the demo source. Don't hesitate to ask questions.

Attribution

SVG icons used by react-cassette-player are licensed Creative Commons (CC BY 3.0) and must be purchased by the Noun Project. Otherwise, you must add the following attribution to your project.

Play icon designed by Björn Andersson from the Noun Project. Cassette icon designed by Daniel Llamas Soto from the Noun Project.

Motivation

Desire to build a functional Noun while experimenting with React SVG support. Feedback and contributions are welcome.

Music

Courtesy of Echo Nest Labs and K Records.

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.2.3

8 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago