Click to reduce…
jp ad-hoc remote -g flatmates -- amarok
The syntax may seem complex in apparence, it's actualy very simple:
- " jp ad-hoc remote" tell that we want a remote control
- "-pgoffi" say thaat we want to use the profile "goffi", but if it's the default profile, it's not needed
- "-cl" the "-c" means "connect this profile if it's not already done", the "-l" means that we want to loop on commands (after launching a command, we will return to the command menu instead of finishing the ad-hoc session).
- "-g coloc" is a filter (coloc mean "flatmates" in french): it tells that in addition of your own jid, the jids from the group "coloc" are allowed to use the remote
- " -- vlc" the "--" is just here to terminate optional arguments, and "vlc" is the name of the software to control.
once the command entered, SàT fill look in D-Bus's Session bus to find buses which have "vlc" in their names, and add commands which don't need arguments. The output show what has been found.
Now, let's see how we can use the remote in Libervia (web interface of SàT):
We use the remote with the ad-hoc "commands" menu
To conclude, a short demo video (in french).
As usual, to watch the video you can use a recent browser (the last Firefox/Iceweasel for example).
You can also use VLC (version >=1.1 only), by using the "Media/Open Netword Stream" menu and by entering this URL: http://www.goffi.org/videos/pr%c3%a9sentation_S%c3%a0T_7_t%c3%a9l%c3%a9commande_universelle.webm
Last but not least, you can use mplayer:: mplayer "http://www.goffi.org/videos/pr%c3%a9sentation_S%c3%a0T_7_t%c3%a9l%c3%a9commande_universelle.webm"
this video is licenced under Creative Common BY-SA