From fe55526cbc6015c4268ee155f21bcb11de5609b5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 13 Nov 2026 13:06:56 +0100 Subject: feat(music): covers for embedded art and videos Haruna sends an embedded audio cover inline as a data:image URL, which the module dropped, and clears mpris:artUrl for every video on purpose so the task manager shows the live window. Serve both at /api/music/image/: the data URL decoded, a local video as one ffmpeg frame (thumbnail filter, 480 px wide), made on first request and kept until the track changes. Only the current track's key answers, so the tablet names a key, never a path. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 0e45a4f..4c34dee 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -103,6 +103,10 @@ Keep the server dependency-free apart from that one package. shows that tab that long and then goes back, unless the page is touched or the tab changed meanwhile. `windows.js` peeks on a window id the last poll lacked, for `[windows] peek` seconds (0 off). +- `music` drives any MPRIS player through `playerctl` (playerctld picks the + last active one). A `data:` cover, or a local video with no cover (Haruna + sends none), is served at `/api/music/image/`, a video as an `ffmpeg` + frame; only the current track's key answers. - Launchers are `[launch] apps`, desktop ids run with `gtk-launch`; label and icon come from the `.desktop` file. The client sends the id, which must be configured and installed. -- cgit v1.2.3