Skip to content

Plex

Plex is a media source, much like Jellyfin. It browses your library and resolves a stream URL; a rule then sends that URL to a real player. It is deliberately not a player itself.

Talks to the Plex server over its HTTP API. Servers are discovered on the network over UDP GDM discovery on port 32414. Authentication uses a Plex token (X-Plex-Token). It resolves content and lets a rule dispatch it elsewhere for playback.

  • serverUrl — the base URL of your Plex server.
  • token — a Plex X-Plex-Token (stored as a secret).
CommandWhat it does
searchSearch the library
stream_urlResolve a stream URL for an item

It carries the media.library trait and supports navigation, so the library is browsable. It emits library.play and library.queue events for a rule to route to a player.