FichteFoll / discordrp-mpris

Discord Rich Presence through media players providing the mpris2 dbus interface
MIT License
86 stars 19 forks source link

Register a clientid for each player #3

Open FichteFoll opened 6 years ago

FichteFoll commented 6 years ago

I could, theoretically, register multiple apps and reconnect to discord with the respective player id when the active player switches. I could even hot-swap the ID by direct attribute access after a manual disconnect so I don't have to refactor.

https://github.com/SSStormy/mpd-rich-presence-discord uses this to show "playing" and "paused" in the title, but I'm not really interested in that.

BobbyWibowo commented 5 years ago

Sounds neat, that project claimed that there'd be delay when changing client but that wouldn't be much of an issue for this project, imo, since it's not like people will switch app that often.

FichteFoll commented 1 year ago

Inside the next branch, I have made the client id configurably globally for now, but it cannot be changed for each player just yet.