An open API service indexing awesome lists of open source software.

https://github.com/zigbang/playerd


https://github.com/zigbang/playerd

Last synced: 6 months ago
JSON representation

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