{"id":19931884,"url":"https://github.com/zhangwei900808/react-cd-player","last_synced_at":"2025-05-03T11:30:42.477Z","repository":{"id":65480732,"uuid":"99763751","full_name":"zhangwei900808/react-cd-player","owner":"zhangwei900808","description":"React-based music player","archived":false,"fork":false,"pushed_at":"2019-03-04T08:31:03.000Z","size":30814,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-30T18:37:22.198Z","etag":null,"topics":["audio","audio-player","cd","cd-player","music-player","react"],"latest_commit_sha":null,"homepage":"http://awbeci.xyz/react-cd-player/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhangwei900808.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-09T04:05:19.000Z","updated_at":"2019-04-18T10:35:27.000Z","dependencies_parsed_at":"2023-01-25T20:01:08.802Z","dependency_job_id":null,"html_url":"https://github.com/zhangwei900808/react-cd-player","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangwei900808%2Freact-cd-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangwei900808%2Freact-cd-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangwei900808%2Freact-cd-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangwei900808%2Freact-cd-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangwei900808","download_url":"https://codeload.github.com/zhangwei900808/react-cd-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224360233,"owners_count":17298319,"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","cd","cd-player","music-player","react"],"created_at":"2024-11-12T23:08:22.155Z","updated_at":"2024-11-12T23:08:22.998Z","avatar_url":"https://github.com/zhangwei900808.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-CD-Player\ntest\n\n![](http://cdn.awbeci.com/images/awbeci-xyz/blog/react-cd-player-cover.png)\n\n## Installation\n\n```js\nnpm install --save react-cd-player\nyarn add react-cd-player\n```\n\n## Usage\n\n```js\nimport React, { Component } from 'react';\n\nimport CdPlayer from 'react-cd-player'\n\nclass App extends Component {\n  onPlay=()=\u003e{\n    console.log('App onplay')\n  }\n  onPause=()=\u003e{\n    console.log('App onPause')\n  }\n  render() {\n    const musicList =[{\n      \"id\": 1,\n      \"title\": \"追光者\",\n      \"artist\": \"岑宁儿\",\n      \"cover\": require('./assets/images/01.jpg'),\n      \"mp3\": 'http://cdn.awbeci.com/music/react-cd-player/01.mp3'\n    }, {\n      \"id\": 2,\n      \"title\": \"被风吹过的夏天\",\n      \"artist\": \"林俊杰-金纱\",\n      \"cover\": require('./assets/images/02.jpg'),\n      \"mp3\": 'http://cdn.awbeci.com/music/react-cd-player/02.mp3'\n    }, {\n      \"id\": 3,\n      \"title\": \"小酒窝\",\n      \"artist\": \"林俊杰-阿sa\",\n      \"cover\": require('./assets/images/03.jpg'),\n      \"mp3\": 'http://cdn.awbeci.com/music/react-cd-player/03.mp3'\n    }]\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cCdPlayer musicList={musicList} onPlay={this.onPlay} onPause={this.onPause}/\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n\n\n```\n## property\n\n### musicList:array\n\n```\n[{\n      \"id\": 1,\n      \"title\": \"追光者\",\n      \"artist\": \"岑宁儿\",\n      \"cover\": require('./assets/images/01.jpg'),\n      \"mp3\": 'http://cdn.awbeci.com/music/react-cd-player/01.mp3'\n    }]\n```\n\n## methods \u0026 events\n\n### onPlay\n\n### onPause\n\n## reference\n\n[pixiv](https://github.com/LoveLiveSunshine/pixiv.moe)\n\n[LoveLiveSunshine](https://github.com/LoveLiveSunshine/LoveLiveSunshine.github.io)\n\n[material-ui](https://github.com/callemall/material-ui)\n\n[material-ui-icons](https://github.com/MODX-Club/material-ui-icons)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangwei900808%2Freact-cd-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangwei900808%2Freact-cd-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangwei900808%2Freact-cd-player/lists"}