QCloudMusicServer

基于Qt实现的 网易云音乐API HTTP服务器

View the Project on GitHub s12mmm3/QCloudMusicServer

QCloudMusicServer

基于Qt实现的 网易云音乐API HTTP服务器

GitHub Actions CI Status GitHub Actions CI Status

C++ version Qt version GitHub license

简介

基于Qt版 网易云音乐 API和QHttpServer库实现的HTTP服务器

支持跨平台和多种编译器编译

目录


需求和依赖

使用说明

直接运行服务器

QCloudMusicServer

服务器启动默认端口为 3000,更换端口/域名可使用以下命令:

QCloudMusicServer --PORT 4000 --HOST 127.0.0.1

浏览器访问http://localhost:3000/song/dynamic/cover?id=2101179024

返回结果

{
    "code": 200,
    "data": {
        "height": 0,
        "needTransition": true,
        "videoPlayUrl": "http://dcover.music.126.net/4e94/a0a4/86a0/4f8994c7397cce4306fa3d40474863da.mp4?wsSecret=1bbd9bdee053836dae0ebc976bd1a131&wsTime=1745088713",
        "weight": 0
    },
    "message": ""
}

接口可参考原项目文档

编译方式

git clone --recursive https://github.com/s12mmm3/QCloudMusicServer.git
cd QCloudMusicServer
cmake -B build
cmake --build build -j

License

The MIT License (MIT)