Skip to content
All work

library

dart_plex

A pure-Dart client for Plex Media Server that covers libraries, hubs, playlists, audio streaming, playback reporting, search and play queues through typed objects, and handles plex.tv sign-in and server discovery.

GitHub stars
0
pub.dev likes
6
pub points
160/160
Downloads /30d
1.2K

Overview

A client object, PlexClient, holds identity, server and token, and typed sub-APIs are accessed through it. dart_jellyfin has the same structure, so an app can support both servers the same way.

Features

  • plex.tv sign-in: legacy credentials or the official 4-character PIN flow at plex.tv/link.
  • Server discovery: owned and shared servers with connection candidates; bestConnection() picks local first, then HTTPS, then relay.
  • Streaming URLs: universalAudioUrl() builds HLS or DASH manifests, directFileUrl() the zero-transcode original.
  • Semantic errors: every failure is a PlexException you can branch on, instead of raw network errors.

It’s pure Dart (no native plugin, no Flutter dependency) and runs anywhere Dart does.

Next project

MPV Studio

Cross-platform audio player built on mpv_audio_kit.