Discord Player
Remedia runtime

The Remedia runtime

What Discord Player delegates to Remedia, and how embedded and remote nodes differ.

You are reading the v8 docsDev

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

RemediaDiscord Player
FFmpeg demuxing, decoding, resampling, filtersTracks, queues, history, repeat, shuffle
Playback state, volume, pause, seekSource plugins and search
Opus encoding and encrypted Discord voiceEvents for your application
Many independent sessions, in-process or on a serverChoosing the track and source for each session

Embedded or remote

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

On this page