aboutsummaryrefslogtreecommitdiffstats
path: root/volume-osd/Player.qml
AgeCommit message (Collapse)AuthorFilesLines
8 hoursdocs(volume-osd): Feishin as the reference player, and the plasma filter ↵Danilo M.1-1/+3
confirmed Feishin fills the MPRIS metadata in the way the spec intends: a real mpris:artUrl, xesam:artist, and a clean xesam:title. That makes it the useful case to test against, and it shows the missing cover under Firefox is a browser and Navidrome-web limitation rather than anything this component does wrong. It is also the first player whose art is a remote HTTP URL instead of a local file, so the cover now depends on reaching the Navidrome host. It also settles the open question from the previous commit. Playing from the same server, Feishin publishes only its own bus name and playerctld, with no plasma-browser-integration entry, so that proxy is browser-only and filtering it costs a native player nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TvHeJEXJzdfAaCCYqURAWp
8 hoursfix(volume-osd): drop the plasma-browser-integration duplicate tooDanilo M.1-4/+10
playerctld was not the only proxy. plasma-browser-integration republishes a browser tab under its own bus name, so a playing Navidrome tab in Firefox was live on three names at once: firefox.instance_*, the plasma name, and playerctld. Only the first was being filtered, so two entries survived for one track and the transport buttons went to whichever sorted first. Safe to drop because none of the three bus names exists until playback starts, and the browser's own entry was present whenever the plasma one was, measured across two play sessions. An open but silent tab publishes nothing, so there is no row to lose. Also records what Navidrome does not provide: no mpris:artUrl, which is why the row shows no cover and is not a bug on this side, and everything packed into xesam:title with xesam:artist left empty. Neither is worked around, splitting such a title needs guessing where a real dash ends. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TvHeJEXJzdfAaCCYqURAWp
27 hoursfeat(volume-osd): show what is playingDanilo M.1-0/+48
The OSD gains a track row above the volume bar when an MPRIS player is running: album art, title, artist, and prev/play/next. With no player it is the volume OSD it was, at the same size. A track change or a play/pause shows the panel as well, so the row is not something you only see by happening to touch the volume. Hovering freezes the fade so the buttons can be clicked and leaving restarts it, which keeps the passive behaviour intact for anyone not reaching for the mouse. The panel still takes no keyboard focus. playerctld proxies whichever player is active and republishes it under its own bus name, so every player is enumerated twice. Player.qml drops that name rather than deduplicating by identity, and controls the real player, which works whether or not playerctld is running. Album art is loaded with cache off and a per-track suffix on the URL. Audacious extracts embedded art into one temp file in its cache and rewrites that same path for each track, so the URL repeats while the image changes, and a cached Image would keep showing the last cover. Theme gains overlay, used by the art placeholder. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7NRsGyF9jGfPYS4zPqpN7