Remedia configuration
Node options for embedded and remote playback.
Pass nodes to the Player with nodes. This is separate from player.nodes, the queue manager.
Embedded node
nodes: [{ id: 'local', type: 'embedded', capacity: 8 }];| Field | Description |
|---|---|
id | Unique node name |
type | 'embedded' |
capacity | Maximum simultaneous guild sessions. Default 64 |
It uses @remedia/node in your process. Official native addons statically link FFmpeg 9, so no separate FFmpeg installation or library-path configuration is needed.
Remote node
nodes: [
{
id: 'audio-1',
type: 'remote',
url: 'remedias://audio.example.com',
auth: { username: 'bot', password: process.env.REMEDIA_PASSWORD! },
},
];| Field | Description |
|---|---|
id | Unique node name |
type | 'remote' |
url | remedia://, remedias://, ws://, or wss://. The path defaults to /v1/ws |
auth | { username, password } for HTTP Basic authentication. Do not log it |
capacity | Overrides the server's reported player maximum for selection |
A remote-only bot does not need @remedia/node; official server releases bundle FFmpeg 9. Use TLS and server-side access limits. See remote playback.
Client options
These Player options go to the Remedia client:
| Option | Default | Description |
|---|---|---|
requestTimeoutMs | 15000 | Timeout for ordinary requests |
maxPendingRequests | 128 | Concurrent requests per remote node |
Voice joins use a longer deadline. connectTimeoutMs on queue.connect() or connectionOptions.connectTimeoutMs on player.play() sets the overall initial join deadline, and channel moves keep their own.
Inspect nodes
await player.initialize(botUserId);
console.log(player.nodeSnapshots);
console.log(player.getRemedia().nodes);Placement
A guild stays on the node it was assigned to. A queue's selectNode option influences the first placement. See node capacity and selection.
For session migration, event generations, and the protocol, see the Remedia client reference.
Continue reading
Troubleshooting