MellowPlayer
MellowPlayer copied to clipboard
Allow plugins to add custom buttons
Description:
This idea is coming from @rustamzh:
It would be nice to allow plugin developers add custom button to further enhance integration of service and player.
E.g. Yandex Music has dislike button. I bet other services have buttons like shuffle, repeat. Or it would be nice to attach links to these custom button, e.g. to the favorite playlist.
I view this feature as following. it would be possible to add array of buttons to the return of update() . Each will consist of the following keys: type (simple, toggle), icon, trigger (function name).
Would it be possible to expose those buttons trough MPRIS2 (if I understand correctly that play/pause/skip buttons and album art are exposed that way)? I mostly control playback trough Plasma media playback thingy.
@mihapiha AFAIK this is not possible, MPRIS is a specification that MellowPlayer implements. We don't expose the play/pause/skip buttons, we just implement DBus methods defined by the spec. You would need to change the MPRIS spec and wait for servers (such as MellowPlayer) and clients (such as Plasma Media Player) to implement the new specification.
This issue has been moved to our new gitlab issue tracker.
The github repository will be archived soon and this issue will become read-only. We suggest you continue the discussion and follow the progress on this issue at gitlab.