https://github.com/zigbang/playerd
https://github.com/zigbang/playerd
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zigbang/playerd
- Owner: zigbang
- Created: 2020-12-09T03:00:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T01:41:47.000Z (over 5 years ago)
- Last Synced: 2025-09-24T01:31:03.375Z (9 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playerd
A simple [`mpv`](https://github.com/mpv-player/mpv)-based music player which can be controlled by simple REST API calls.
## Prerequisites
* [`mpv`](https://github.com/mpv-player/mpv)
## How to use
```
> npx playerd
playerd v0.0.4
player Starting mpv... +0ms
http Listening on port 3000 +0ms
```
## Options
```
> npx playerd --help
Usage: playerd [options]
Options:
-V, --version output the version number
-p, --port specify port (default: "3000")
-h, --help display help for command
```
## APIs
### `GET /play`
Plays the playlist URL
| Parameter | Description |
| --------- | ------------ |
| `url` | Playlist URL |
### `GET /stop`
Stops the music player