Giter VIP home page Giter VIP logo

singjump's Introduction

唱跳

一个golang编写的电脑控制本地播放器服务端

接口

路径 请求类型 功能 返回 错误
/play/pause GET 暂停/播放 pause
/play/next GET 下一首 next
/play/previous GET 上一首 previous
/play/volup GET 音量加 volume(int)
/play/voldown GET 音量减 volume(int)
/play/like GET 歌曲红心 like
/play/lyric GET 歌词控件开关 lyric
/play/mute GET 静音 volume(int)
/sys/getvol GET 获取音量 volume(int)
/sys/setvol POST 设置音量 volume(int) error(string)

用法

执行程序会显示出本机IP和端口,用GET访问ip:port/路径即可

eg:

  1. GET {{ip}}:{{port}}/sys/getvol 得到
{
    "volume": 10
}
  1. POST {{ip}}:{{port}}/sys/setvol CONTENT
{
    "setSysVolume":20
}

得到

{
    "volume": 20
}

超出音量范围时

{
    "error": "invalid volume range"
}

手机客户端

RapMusic

singjump's People

Contributors

lxgmax avatar

Stargazers

 avatar  avatar Mike Evans avatar

Watchers

 avatar

singjump's Issues

新增Rap功能

总所周知,每当人们谈论到唱和跳,总会情不自禁联想到Rap,由此可见,唱跳Rap本身就是三位一体,缺一不可,因此建议新增Rap功能,用于俘获广大的爱好者们。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.