Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Controlling VLC via openbox key bindings... and wget(!)
Posted 01-28-2013 at 10:21 AM by the dsc
Updated 01-28-2013 at 06:10 PM by the dsc (fixing some stuff, redirection didn't work that way)
Updated 01-28-2013 at 06:10 PM by the dsc (fixing some stuff, redirection didn't work that way)
On openbox' rc.xml, in the corresponding section:
With "web" interface enabled
By far the weirdest workaround I've seen on this sort of thing. If that's really a workaround and not the "proper" way to do it.
Command line has options such as:
vlc --global-key-prev p <playlist-name-I-guess.m3u>
which sort of works, except that in this case it won't be really the previous, but just a random element. I guess the playlist is being re-loaded, but it won't work if you don't give such mysterious "string", which is supposed to be a file, according to the error console. VLC's instrunctions are as follow:
Which to be honest I can't really tell if that's a command line to navigate through the playlist, or just to set the hotkeys. It sounds more like the latter, but that's a rather odd command to have on command line begin with. Furthermore I didn't succeed in trying to re-set the hotkeys that way either, so I guess it's really a navigation control, as it's something more expected to have on command line, I guess.
Code:
<keybind key="W-z"> <action name="Execute"> <execute>wget http://127.0.0.1:8080/requests/status.xml?command=pl_previous -O /dev/null</execute> </action> </keybind> <keybind key="W-x"> <action name="Execute"> <execute>wget http://127.0.0.1:8080/requests/status.xml?command=pl_next -O /dev/null</execute> </action> </keybind>
By far the weirdest workaround I've seen on this sort of thing. If that's really a workaround and not the "proper" way to do it.
Command line has options such as:
vlc --global-key-prev p <playlist-name-I-guess.m3u>
which sort of works, except that in this case it won't be really the previous, but just a random element. I guess the playlist is being re-loaded, but it won't work if you don't give such mysterious "string", which is supposed to be a file, according to the error console. VLC's instrunctions are as follow:
Quote:
--global-key-prev=<string> Previous
Select the hotkey to use to skip to the previous item in the playlist.
--key-prev=<string> Previous
Select the hotkey to use to skip to the previous item in the playlist.
Select the hotkey to use to skip to the previous item in the playlist.
--key-prev=<string> Previous
Select the hotkey to use to skip to the previous item in the playlist.
Total Comments 0