{"id":27326651,"url":"https://github.com/chadpaulson/react-cassette-player","last_synced_at":"2025-04-12T11:59:13.337Z","repository":{"id":285733451,"uuid":"27876266","full_name":"chadpaulson/react-cassette-player","owner":"chadpaulson","description":"Simple ReactJS HTML5 audio player component built with SVG icons from The Noun Project.","archived":false,"fork":false,"pushed_at":"2023-10-06T06:18:57.000Z","size":469,"stargazers_count":98,"open_issues_count":3,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T11:37:32.983Z","etag":null,"topics":["audio","audio-player","cassette","html5","html5-audio","javascript","music","music-player","player","react","react-component","react-components","svg","svg-icons"],"latest_commit_sha":null,"homepage":"https://chadpaulson.github.io/react-cassette-player","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chadpaulson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-11T14:52:27.000Z","updated_at":"2023-11-02T13:36:33.000Z","dependencies_parsed_at":"2025-04-02T11:37:36.830Z","dependency_job_id":"0744935c-7a39-45e9-bf7d-aea136d64423","html_url":"https://github.com/chadpaulson/react-cassette-player","commit_stats":null,"previous_names":["chadpaulson/react-cassette-player"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadpaulson%2Freact-cassette-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadpaulson%2Freact-cassette-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadpaulson%2Freact-cassette-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadpaulson%2Freact-cassette-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chadpaulson","download_url":"https://codeload.github.com/chadpaulson/react-cassette-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565088,"owners_count":21125415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","audio-player","cassette","html5","html5-audio","javascript","music","music-player","player","react","react-component","react-components","svg","svg-icons"],"created_at":"2025-04-12T11:59:12.872Z","updated_at":"2025-04-12T11:59:13.327Z","avatar_url":"https://github.com/chadpaulson.png","language":"JavaScript","funding_links":[],"categories":["Awesome React"],"sub_categories":["Tools"],"readme":"# [react-cassette-player](https://chadpaulson.github.io/react-cassette-player/)\n\n[![Build Status](https://travis-ci.org/chadpaulson/react-cassette-player.svg?branch=master)](https://travis-ci.org/chadpaulson/react-cassette-player)\n\n[![screenshot](https://github.com/chadpaulson/react-cassette-player/raw/gh-pages/img/screenshot.png)](https://chadpaulson.github.io/react-cassette-player/)\n\nDemo @ https://chadpaulson.github.io/react-cassette-player/\n\n## Install\n\n```\nnpm install react-cassette-player\n```\n\n## Basic Usage\n\n```javascript\nvar React = require('react')\nvar ReactDOM = require('react-dom')\nvar Cassette = require('react-cassette-player')\n\nvar audio = 'https://wavves.s3.amazonaws.com/la.mp3'\nReactDOM.render(\u003cCassette src={audio} /\u003e, document.body)\n```\n\n## Props\n\n|                |                      |\n|----------------|----------------------|\n| src            | Required: URI of HTML5 audio resource you wish to play. |\n| preload        | Optional: `metadata` (default), `auto` or `none`. |\n| mimeType       | Optional: `audio/mpeg` (default), `audio/ogg` or `audio/wav` string. |\n| cassetteColor  | Optional: RGB or HEX string. |\n| labelColor     | Optional: RGB or HEX string. |\n| tapeColor      | Optional: RGB or HEX string. |\n| controlsColor  | Optional: RGB or HEX string. |\n| containerClass | Optional: `react-cassette-player` (default) string. |\n| scaleMethod    | Optional: `meet` (default) or `slice` string. See [preserveAspectRatio](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio). |\n\nAll 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).\n\n## Attribution\n\nSVG 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.\n\n  \u003e [Play](http://thenounproject.com/term/play/15109/) icon designed by [Björn Andersson](http://thenounproject.com/bjorna1/) from the Noun Project.\n  \u003e [Cassette](http://thenounproject.com/term/cassette/37972/) icon designed by [Daniel Llamas Soto](http://thenounproject.com/yamasoto/) from the Noun Project.\n\n## Music\n\n[Demo audio](https://chadpaulson.github.io/react-cassette-player/) courtesy of [Echo Nest Labs](http://static.echonest.com/labs/).\n\n## Motivation\n\nDesire 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadpaulson%2Freact-cassette-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchadpaulson%2Freact-cassette-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadpaulson%2Freact-cassette-player/lists"}