Page 1 of 1

Player controls trough CLI

Posted: Thu Aug 02, 2012 4:24 am
by milke
Is it possible to implement CLI controls to Guayadeque, at least those most basic ones for the start, like --play, --stop, --previous, --next.
That would help a lot for controlling the player with some multimedia keyboards in environments that do not offer friendly way to activate and adjust those shortcuts.
Also, I've been using those CLI controls on Rhythmbox to set up and control playback with TV card remote control. It probably isn't that hard to implement and it would further widen the usability potential of the player.

Best regards,
Nikola

Player controls trough CLI

Posted: Thu Aug 02, 2012 4:37 am
by anonbeat

Player controls trough CLI

Posted: Thu Aug 02, 2012 4:54 am
by milke
Thanks! That does it perfectly with some aliases defined. (I tried searching but did not find)

Only 1 thing, Play/Pause command actually does Play/Stop, so instead of

dbus-send --print-reply --type=method_call --dest=org.mpris.guayadeque /Player org.freedesktop.MediaPlayer.Play

there is real Play/Pause command:
dbus-send --print-reply --type=method_call --dest=org.mpris.guayadeque /Player org.freedesktop.MediaPlayer.Pause

Cheers

Player controls trough CLI

Posted: Thu Aug 02, 2012 4:58 am
by milke
And now I notice that play/pause thing has been already mentioned in the last post of the thread you linked... I'll just stop writing XD