ColinDuquesnoy / MellowPlayer

Moved to gitlab
https://gitlab.com/ColinDuquesnoy/MellowPlayer
GNU General Public License v2.0
233 stars 26 forks source link

Allow plugins to add custom buttons #224

Open ColinDuquesnoy opened 6 years ago

ColinDuquesnoy commented 6 years ago

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).
mihapiha commented 6 years ago

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.

ColinDuquesnoy commented 6 years ago

@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 commented 5 years ago

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.