The Remedia runtime
What Discord Player delegates to Remedia, and how embedded and remote nodes differ.
Remedia is the audio engine behind Discord Player. It opens encoded media, selects Opus passthrough or PCM processing, applies filters and volume, and sends audio over Discord voice. Discord Player decides which track plays and where its audio comes from. Official native addons and server releases statically link FFmpeg 9.
Who owns what
| Remedia | Discord Player |
|---|---|
| FFmpeg demuxing, decoding, resampling, filters | Tracks, queues, history, repeat, shuffle |
| Playback state, volume, pause, seek | Source plugins and search |
| Opus encoding and encrypted Discord voice | Events for your application |
| Many independent sessions, in-process or on a server | Choosing the track and source for each session |
Embedded or remote
Embedded node
The engine runs inside your bot process.
Remote node
The engine runs in a separate server that the bot controls over WebSocket.
Node capacity and selection
Inspect nodes and choose where a guild plays.
Both modes run the same playback engine. A remote node is a separate process, so it adds network latency, authentication, and reconnects. It also cannot read your bot's local files or streams.
Access the client
After player.initialize(), the Remedia client is player.remedia. Use player.nodeSnapshots for node status.
player.nodes is the guild queue manager from v7. It is not the list of audio nodes.
What stays on the bot
Locally registered source plugins run in your bot process. A remote Remedia server does not copy or run those JavaScript handlers. It opens a resolved URL or server-local file, or executes an allowed operation on a configured source host. The host runs its own plugin runtime and retains provider credentials; a portable Track stores source identity rather than an active stream or temporary grant.
For protocol, security, and server settings, see the Remedia documentation.
Continue reading
Embedded playback