@inner-dj/client
v0.1.2
Published
player component of inner-dj
Readme
@inner-dj/client
This is the client (or player) component for inner-dj.
Requirements
- yt-dlp
- ffplay
Deployment
The inner-dj client is available via npm.
npm
npx @inner-dj/clientpnpm
pnpm dlx @inner-dj/clientConfiguration
By default, inner-dj client will attempt to load a configuration file at config/config.yaml (relative to the current working directory).
To use a custom config path, set environment variable CONFIG.
Config Root
Note that comma-separated values are accepted for environment variables.
| YAML key | Environment Var | Type | Description | Default | |------------------------|---------------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------| | clientId | CLIENTID | string | ID of your choice to identify the client to the server as | REQUIRED | | server | SERVER | string | URL of the inner-dj server | REQUIRED | | jwtSecret | JWTSECRET | string | Secret for communications between client and server. Only share with server. | REQUIRED | | cookies | COOKIES | string | Optional path to Netscape-formatted file to read cookies from. See how do I pass cookies to yt-dlp? | null | | forceDownloadViaServer | FORCESERVERDOWNLOAD | boolean | If true, download missing songs via the server. Otherwise download locally first and fall back to server if something goes wrong | false | | downloadDir | DOWNLOADDIR | string | Where audio files are stored. | ./downloads/ next to config file | | maxLength | MAXLENGTH | number | How long in ms to wait during each track before skipping to the next track. Set to 0 to play audio files in their entirety. | 0 | | standbyPool | STANDBYPOOL | string[] | List of songs (YouTube URLs) to shuffle through if there are no requests in the queue. | [] | | blocked | BLOCKED | string[] | List of YouTube URLs to reject requests for. | [] |
