On Windows the miniplayer is now a window of its own (mini.rs, mini.html):
a borderless window owned by the main one that the video moves into
(VideoSurface::set_host swaps composition targets in one commit). Dragging
moves the whole window, so video and controls move together with no edge
flicker; release glides it to the nearest corner or the one it's flicked
towards, remembered, and it follows the main window. Its page mirrors the
player over events (mini:state / mini:action). Shown and hidden natively
without activation, so the main window keeps focus. macOS keeps the
in-page miniplayer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix a UI-thread deadlock between the player and window resizes: player_rect
held the video-surface lock while Tauri's hwnd() waited for the UI thread,
and on_resize, running on the UI thread, waited for that lock. Leaving full
screen for the miniplayer could freeze the window while mpv kept playing.
Resize handling now runs off the UI thread, and the Windows surface keeps its
HWND instead of asking the UI thread for it.
Add local diagnostics: a watchdog writes a dump of every thread when the UI
thread stops answering for 5 s, unhandled exceptions write a crash dump and
log the faulting module (Windows), and panics are logged. Windows release
builds keep function names in kaleido.pdb, archived per version in
.tools/symbols/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The video layer's float framebuffer had no colour space, so macOS read
gamma-encoded SDR as linear light; SDR is now tagged sRGB (HDR keeps
BT.2100 PQ). Downloaded artwork is kept in dot-files, which the asset
protocol's "**" scope skips on macOS unless leading dots are allowed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macOS (Apple silicon) now plays, browses and updates like Windows:
- Video: libmpv's render API draws into a CAOpenGLLayer beneath the
WKWebView, with the miniplayer rectangle, HDR passthrough through
extended dynamic range (PQ/BT.2020) and display-sleep prevention.
- Window: native traffic lights on the top bar's centre line, hidden
with the player's controls; the page's caption buttons are Windows-only.
- Interface: macOS shortcut labels (⌘K, ⌘[, ⌃⌘F), Plex identifies the
player as a Mac, and header values are kept ASCII (Mac computer names
usually contain a curly apostrophe).
- The window appears without waiting for an animation frame, which
WKWebView doesn't run in a hidden window.
- Credentials: release builds use the Keychain and are signed with a
lasting self-signed certificate so access survives updates; debug
builds keep tokens in a private file to avoid prompts on every rebuild.
- Bundling: scripts/fetch-libmpv.sh makes Homebrew's libmpv and its
libraries self-contained; scripts/build.sh builds the .app, .dmg and
signed update archive.
Releases now carry both platforms: publish-release.mjs uploads each
machine's build into one release, and update-manifest.mjs writes the
feed from that release's assets, refusing while a platform is missing.
The updater uses a new signing key (public key in tauri.conf.json), so
existing installs must be reinstalled once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the server owner stops a stream, Plex cuts the connection and repeats
the termination in every timeline reply to the client until it reports a
stop. The player now reads those replies (also when playback stalls or
fails), stops mpv, shows the owner's message and acknowledges it; a
termination on a session's first reply is left over from an earlier stream
and is cleared instead of cancelling the new one. Each title also starts
unpaused, as mpv keeps pause across files.
The dashboard's bandwidth graph refreshes every second. Plex's real-time
samples are bytes per second with idle seconds omitted, so they are laid on
a gap-free per-second axis (they were divided by six before).
Upscaling: Balanced is now the strongest shader chain, light nlmeans,
FSRCNNX 16, KrigBilateral and debanding. Measured against 1080p references
shrunk to 480p it beat FSRCNNX 8, two network passes, RAVU and
SSimSuperRes. The denoiser is AN3223's light profile with luma strength at
60%, which keeps texture the default profile smoothed away. Quality is now
NVIDIA RTX Video Super Resolution through mpv's d3d11vpp filter, sized to
the window and re-applied when it changes; it is offered only on Windows
with an NVIDIA RTX GPU (app_info now lists the adapters), runs Balanced for
HDR or at native size, and drops a tier if the driver refuses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quality runs ArtCNN C4F32 (its denoising model when Denoising is on),
KrigBilateral, debanding and CAS. Its network runs at any enlargement,
so 1080p in a maximized 1440p window is doubled and scaled down; Balanced
keeps FSRCNNX's 1.3x threshold.
The enhancement pipeline moves to player/enhance.ts. Mode changes are
serialized (latest wins). Shader errors in mpv's log, or network passes
missing from vo-passes, drop to the tier below with a notice, and the
chosen and running tiers are shown separately. HDR is judged from the
decoded video. Debanding, sharpening and denoising have their own
toggles, B compares with enhancement off, and the panel shows the
renderer's actual stages, GPU time and dropped frames.
Compiled shaders persist in the app cache (gpu-shader-cache-dir):
ArtCNN's first Direct3D compile takes about a minute, which the player
now announces, and later launches start immediately.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Startup now uses the Android iris animation, and playback can continue
in a corner miniplayer while browsing (the video is drawn into a corner
rectangle beneath a matching hole in the page). The player keeps the
window controls, hides its chrome when the pointer leaves, and gains
audio/subtitle tracks, audio sync, source bitrate and playback details
in its options. Subtitles can be styled in Settings with a live preview.
Categories replace Collections, the A–Z rail magnifies, descriptions
expand in place, downloads can be removed in bulk, and search keeps its
results while typing.
Fixes scroll jank from per-card and scrolling backdrop blurs, the hidden
colour wash, the cubic volume curve, loud theme music, the search focus
ring, a stray nav indicator, Continue Watching previews and the TV Shows
header overlap. Removes the star rating, the duplicate Settings menu
entry and the server settings' Show advanced switch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tauri 2 shell with a React/TypeScript interface and libmpv playback composed
beneath the web view (DirectComposition on Windows). Shared code with per-OS
platform modules and configs so macOS and Linux can follow.
- Plex sign-in (browser, plex.tv/link or manual), server selection, Plex Home
- Home, Movies and TV Shows (Discover, Library, Collections), search, people
- Title pages with logos, ratings, cast, extras, seasons and episodes
- Direct play with Plex conversion fallback, tracks, markers, autoplay
- Metadata editing, artwork, fix match, refresh, analyze and deletion
- Resumable offline downloads
- App settings and Plex server administration with a live dashboard
- Signed updater feed and Forgejo CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>