All Projects → xingbofeng → Wx Audio

xingbofeng / Wx Audio

Licence: mit
🎵 A music-player built with weixin platform.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Wx Audio

Taro Msparis
🌱用 React 编写的基于Taro + Dva构建的适配不同端(微信/百度/支付宝小程序、H5、React-Native 等)的时装衣橱
Stars: ✭ 1,203 (+651.88%)
Mutual labels:  wxapp
Mpvue Weui
用 vue 写小程序,基于 mpvue 框架重写 weui。
Stars: ✭ 1,463 (+814.38%)
Mutual labels:  wxapp
Wx Miniprogram Boilerplate
基于Gulp微信小程序开发工作流,支持less样式编写,支持ESLint代码检查等功能
Stars: ✭ 122 (-23.75%)
Mutual labels:  wxapp
Myblog Wxapp
😂myBlog-wxapp
Stars: ✭ 86 (-46.25%)
Mutual labels:  wxapp
Awesome Wechat Weapp
微信小程序开发资源汇总 💯
Stars: ✭ 36,769 (+22880.63%)
Mutual labels:  wxapp
Easy Canvas
小程序简单绘图,通过 json 方式绘制一张朋友圈分享图
Stars: ✭ 117 (-26.87%)
Mutual labels:  wxapp
Nfu Guide Map
📍 地图导览小程序 — 南苑导览 🚶 仅需修改配置即可适配任意场景的个性化定制地图小程序
Stars: ✭ 72 (-55%)
Mutual labels:  wxapp
We Cropper
微信小程序图片裁剪工具
Stars: ✭ 1,972 (+1132.5%)
Mutual labels:  wxapp
Wxgame Threejs
Threejs 开发微信小游戏
Stars: ✭ 111 (-30.62%)
Mutual labels:  wxapp
Wx Book
仿追书神器的小说阅读器小程序
Stars: ✭ 122 (-23.75%)
Mutual labels:  wxapp
Wechat Weapp Movie
🎬电影推荐 - 微信小程序
Stars: ✭ 1,355 (+746.88%)
Mutual labels:  wxapp
Myfirst
Stars: ✭ 103 (-35.62%)
Mutual labels:  wxapp
Wxapp toutiaonews
📰微信小程序--头条新闻
Stars: ✭ 119 (-25.62%)
Mutual labels:  wxapp
Wxapp
微信小程序知识总结及案例集锦
Stars: ✭ 79 (-50.62%)
Mutual labels:  wxapp
Wxa Plugin Calendar
小程序插件-预约日历插件-微信小程序日历插件
Stars: ✭ 124 (-22.5%)
Mutual labels:  wxapp
Wxapp Mall
微信小程序 商城demo
Stars: ✭ 1,190 (+643.75%)
Mutual labels:  wxapp
M Mall
🐶 微信小程序-小商城前台(基于 WeUI.wxss、ES6 前端技术开发...)
Stars: ✭ 1,484 (+827.5%)
Mutual labels:  wxapp
Travelibrary
🐣流动图书馆微信小程序前端
Stars: ✭ 160 (+0%)
Mutual labels:  wxapp
Wx calendar
微信小程序-日历组件 📅
Stars: ✭ 2,008 (+1155%)
Mutual labels:  wxapp
Mp canvas drawer
🚀 微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
Stars: ✭ 1,611 (+906.88%)
Mutual labels:  wxapp

wx-audio

Build Status

It‘s a Music-Player built with weixin-app.

中文文档

Screenshots

picture

Environment

Node.js 6.0+

Warning: Because I use some grammar of es6, you should update the version of your Node.js, this project is only supported Node.js 6.0+.

Directory

  • pages/: Pages of this application.
  • server/: The Back-End of this application,I had deployed it to my own Cloud Server(https://encounter.studio:3000, http method is POST,param is musicname), you can use it freely.
  • test/: Unit test code.

Quickly Start

git clone https://github.com/xingbofeng/wx-audio.git
  • Start the server on your local environment

Warning: I had deployed it to my own Cloud Server(https://encounter.studio:3000, http method is POST,param is musicname).If you want to run the server in your local environment, please modify wx.request of pages/index/index.js to http://localhost:3000, then yarn start.

yarn install
yarn start
  • Unit test The code of test at test/, under the environment of mocha:
yarn install -g mocha
yarn test
  • Open The tool of Weixin development.
  • Run it in your tool.

To Do List

  • [x] Add Node.js
  • [x] Add Unit Test
  • [x] The List of music
  • [ ] Search User / Singer / Playlist
  • [ ] Control the speed of music playing

API documents

URL

GET http://music.163.com/api/search/get/

params

s: The keyword of Searching.
limit: The mounts of you want to get.
sub: Please set it `false`.
type: Types, see the list as follows.

1 Music
10 Album
100 Singer
1000 Playlist
1002 User

Example

http://s.music.163.com/search/get/?type=1&limit=5&s=%E5%91%8A%E7%99%BD%E6%B0%94%E7%90%83

The result is as follows:

{
  "result": {
    "songCount": 2275,
    "songs": [
      {
        "id": 440241144,
        "name": "告白气球",
        "artists": [
          {
            "id": 1081635,
            "name": "周二珂",
            "picUrl": null
          }
        ],
        "album": {
          "id": 34986028,
          "name": "告白气球",
          "artist": {
            "id": 0,
            "name": "",
            "picUrl": null
          },
          "picUrl": "http://p1.music.126.net/m3_elKryq_x62UNHJ2NgHg==/109951162807555886.jpg"
        },
        "audio": "http://m2.music.126.net/GvIMZ5ZW0l04xFMVYtTy8g==/18502581673300022.mp3",
        "djProgramId": 0,
        "page": "http://music.163.com/m/song/440241144"
      },
      {
        "id": 434070713,
        "name": "告白气球 ",
        "artists": [
          {
            "id": 1073042,
            "name": "王进",
            "picUrl": null
          }
        ],
        "album": {
          "id": 34801227,
          "name": "告白气球",
          "artist": {
            "id": 0,
            "name": "",
            "picUrl": null
          },
          "picUrl": "http://p1.music.126.net/cIim8rAhdKV1Up7e9zSFoA==/17647161626137638.jpg"
        },
        "audio": "http://m2.music.126.net/zp5J-qWfkwmBd2pq3pHzCw==/18605935765863165.mp3",
        "djProgramId": 0,
        "page": "http://music.163.com/m/song/434070713"
      },
      {
        "id": 421137034,
        "name": "告白气球",
        "artists": [
          {
            "id": 1158065,
            "name": "宇西",
            "picUrl": null
          }
        ],
        "album": {
          "id": 34778501,
          "name": "告白气球(Cover 周杰伦)",
          "artist": {
            "id": 0,
            "name": "",
            "picUrl": null
          },
          "picUrl": "http://p1.music.126.net/tlp3VWVQVe0Je1r-oHn91g==/17666952835430891.jpg"
        },
        "audio": "http://m2.music.126.net/8egvCxWVy4vzk2EJG_dGqg==/3265549609864401.mp3",
        "djProgramId": 0,
        "page": "http://music.163.com/m/song/421137034"
      },
      {
        "id": 429461789,
        "name": "告白气球",
        "artists": [
          {
            "id": 975714,
            "name": "叶洛洛",
            "picUrl": null
          },
          {
            "id": 12126098,
            "name": "Vk",
            "picUrl": null
          }
        ],
        "album": {
          "id": 34872359,
          "name": "告白气球",
          "artist": {
            "id": 0,
            "name": "",
            "picUrl": null
          },
          "picUrl": "http://p1.music.126.net/PuNMFpLHzvHw2v0-Zh2b8g==/18244196440128259.jpg"
        },
        "audio": "http://m2.music.126.net/t_qlmZ581WF2MwHmvUavxA==/2946691220790691.mp3",
        "djProgramId": 0,
        "page": "http://music.163.com/m/song/429461789"
      }
    ]
  },
  "code": 200
}

image

Change Log

  • 0.0.1 🎉Deploy;
  • 0.0.2 Add Unit test;
  • 0.1.0 Finish the List of music;
  • 0.1.1 Add English documents, And use yarn to build this application;

LICENSE

MIT LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].