ray-kast / empress

A D-Bus MPRIS daemon for controlling media players.
GNU Affero General Public License v3.0
12 stars 0 forks source link

[Feature request] "Follow" mode for the now-playing subcommand #6

Closed mradermaxlol closed 1 year ago

mradermaxlol commented 2 years ago

This would allow integrating empress with e.g. WM bars/panels without extra quirks, similar to playerctl metadata -F.

ray-kast commented 2 years ago

I think this should be semi-easy to handle. The empress daemon already listens for metadata changes to maintain its internal player priority list and runs a hook to update the player state it keeps internally tracked, so adding a D-Bus signal shouldn't be too complex. The big question is how best to propagate the player metadata sent by the daemon for a normal now-playing call, as this constitutes three or four D-Bus calls so having each listener perform a metadata query may not be desirable.

Current steps for this issue:

ray-kast commented 2 years ago

Due to tech-debt reasons I'm gonna try to sneak #7 in first.

ray-kast commented 2 years ago

@mradermaxlol just a heads-up, I'm still working on this but some life stuff has gotten in the way so it's taking longer than I expected...

ray-kast commented 1 year ago

Completed by #10.