MellowPlayer icon indicating copy to clipboard operation
MellowPlayer copied to clipboard

Allow plugins to add custom buttons

Open ColinDuquesnoy opened this issue 6 years ago • 3 comments

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).

ColinDuquesnoy avatar Apr 22 '18 11:04 ColinDuquesnoy

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 avatar Jun 19 '18 10:06 mihapiha

@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.

ColinDuquesnoy avatar Jun 19 '18 16:06 ColinDuquesnoy

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.

ColinDuquesnoy avatar Dec 01 '18 16:12 ColinDuquesnoy