# react-cassette-player

> Simple ReactJS HTML5 audio player component built with SVG icons from The Noun Project.

Latest version **1.1.2** (published 2016-04-10) · GPLv2 license · 0 weekly downloads

## Install

```sh
npm install react-cassette-player
pnpm add react-cassette-player
yarn add react-cassette-player
bun add react-cassette-player
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2016-04-10 |
| First published | 2014-12-12 |
| Weekly downloads | 0 |
| License | GPLv2 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.33 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 98 |
| Author | Chad Paulson |
| Maintainers | chadpaulson |
| Keywords | react-component, svg, html5 audio, html5, audio, mp3, ogg, wav, media, player, cassette, isomorphic, react, reactjs |

## Links

- npm: https://www.npmjs.com/package/react-cassette-player
- Repository: https://github.com/chadpaulson/react-cassette-player
- Issues: https://github.com/chadpaulson/react-cassette-player/issues
- npm.io page: https://npm.io/package/react-cassette-player

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2016-04-10
- 1.1.1 — 2016-04-10
- 1.1.0 — 2016-04-09
- 1.0.0 — 2016-04-09
- 0.3.0 — 2016-04-09
- 0.2.3 — 2016-04-09
- 0.2.2 — 2015-05-21
- 0.2.1 — 2015-05-15
- 0.2.0 — 2015-05-14
- 0.1.9 — 2015-03-19
- 0.1.8 — 2014-12-22
- 0.1.7 — 2014-12-16
- 0.1.6 — 2014-12-14
- 0.1.5 — 2014-12-14
- 0.1.4 — 2014-12-12
- … 4 more at https://npm.io/package/react-cassette-player/versions

## README

# [react-cassette-player](https://chadpaulson.github.io/react-cassette-player)

[![Build Status](https://travis-ci.org/chadpaulson/react-cassette-player.svg?branch=master)](https://travis-ci.org/chadpaulson/react-cassette-player)

[![screenshot](https://github.com/chadpaulson/react-cassette-player/raw/gh-pages/img/screenshot.png)](https://chadpaulson.github.io/react-cassette-player)

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

## Install

```
npm install react-cassette-player
```

## Basic Usage

```javascript
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

|                |                      |
|----------------|----------------------|
| src            | Required: URI of HTML5 audio resource you wish to play. |
| preload        | Optional: `metadata` (default), `auto` or `none`. |
| mimeType       | Optional: `audio/mpeg` (default), `audio/ogg` or `audio/wav` string. |
| cassetteColor  | Optional: RGB or HEX string. |
| labelColor     | Optional: RGB or HEX string. |
| tapeColor      | Optional: RGB or HEX string. |
| controlsColor  | Optional: RGB or HEX string. |
| containerClass | Optional: `react-cassette-player` (default) string. |
| scaleMethod    | Optional: `meet` (default) or `slice` string. See [preserveAspectRatio](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio). |

All props can be referenced in the [demo source](https://github.com/chadpaulson/react-cassette-player/tree/gh-pages). Don't hesitate to [ask questions](https://github.com/chadpaulson/react-cassette-player/issues/new).

## Attribution

SVG icons used by react-cassette-player are licensed [Creative Commons (CC BY 3.0)](https://creativecommons.org/licenses/by/3.0/us/) and must be purchased by the [Noun Project](http://thenounproject.com). Otherwise, you must add the following attribution to your project.

  > [Play](http://thenounproject.com/term/play/15109/) icon designed by [Björn Andersson](http://thenounproject.com/bjorna1/) from the Noun Project.
  > [Cassette](http://thenounproject.com/term/cassette/37972/) icon designed by [Daniel Llamas Soto](http://thenounproject.com/yamasoto/) from the Noun Project.


## Motivation

Desire to build a functional [Noun](http://thenounproject.com) while experimenting with React SVG support. [Feedback and contributions](https://github.com/chadpaulson/react-cassette-player/issues/new) are welcome.

## Music

Courtesy of [Echo Nest Labs](http://static.echonest.com/labs/) and [K Records](http://krecs.com).

---
_Source: https://npm.io/package/react-cassette-player · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
