{"id":21148788,"url":"https://github.com/2ue/vue-music","last_synced_at":"2026-05-21T10:06:08.476Z","repository":{"id":143889885,"uuid":"77188972","full_name":"2ue/vue-music","owner":"2ue","description":"程序员就应该有自己的音乐电台","archived":false,"fork":false,"pushed_at":"2016-12-23T03:18:43.000Z","size":165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T07:43:49.824Z","etag":null,"topics":["music","vue","vue-music"],"latest_commit_sha":null,"homepage":"","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/2ue.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-23T01:48:04.000Z","updated_at":"2017-02-14T07:06:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"f63faae4-5eba-421d-9f59-85284042f65d","html_url":"https://github.com/2ue/vue-music","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvue-music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvue-music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvue-music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Fvue-music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2ue","download_url":"https://codeload.github.com/2ue/vue-music/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243589333,"owners_count":20315471,"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":["music","vue","vue-music"],"created_at":"2024-11-20T09:29:00.942Z","updated_at":"2026-05-21T10:06:03.434Z","avatar_url":"https://github.com/2ue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-music\n\n\u003e 利用网易音乐的接口做了一个小小的电台。利用vue + vue-simple-webpack。由于音乐播放是使用原生audio可能会存在一些兼容问题。\n\u003e\n\u003e 本项目使用网易音乐非公开接口(据说是加密后被各路大神解出来的)，请勿恶意爬取数据（有人恶意爬取收到网易的律师函了）。\n\n\n\n## 效果预览\n\n目前已经实现了基本播放功能(但有一些BUG)，\n\n计划实现：歌词同步，搜索，本地存储播放列表，接口切换等功能\n\n ![vue-datepicker](https://github.com/2ue/vue-music/blob/master/src/assets/vue-music.gif)\n\n## 运行\n\n``` bash\n# 安装依赖\nnpm install\n\n# 本地启动 \u003e localhost:8080\nnpm run dev\n```\n\n## 已知BUG及优化(To Do)\n\n- BUG\n  - 播放进度计算存在误差\n  - 在某些时候歌曲播放完成后无法自动切换到下一首\n  - 当歌曲资源出错时，无法自动切换\n  - 计算时间出现NaN\n- 优化\n  - 保持原始数据的正确性，在其副本上计算\n  - 跨域请求目前使用的webpack-dev-server Proxy 代理，后期会改成axios等方式跨域（axios按照官方配置跨域一直无效[链接](https://github.com/mzabriskie/axios/issues/335)，求老司机带带）\n\n## 接口\n\n接口存放到musicAPI.js，具体的细节其中有详细注释,\n\n目前调用的是用户歌单的接口（后期计划增加接口切换功能）\n\n## 参考\n\n- [HTML aduio](http://www.w3school.com.cn/jsref/dom_obj_audio.asp)\n- [webpack-dev-server Proxy ](https://segmentfault.com/q/1010000004881097)\n- [axios](https://github.com/mzabriskie/axios)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2ue%2Fvue-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2ue%2Fvue-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2ue%2Fvue-music/lists"}