When I look at the link at
http://wiki.videolan.org/VLM all it shows it how to run the telnet or http interfaces, but nothing about how to actually send commands.
Is there another place that actually shows how to use the telnet or http interfaces, not just how to get them running from vlc.
I've tried sending the basic commands to telnet and all it seems to understand is help and exit. Even the commands that are mentioned in help don't work, e.g. I type "pause"<return> and nothing happens, except it complains about an unknown command.
I'm running on windows xp with 0.99 and I use the command prompt MS built in telnet program. I can connect fine and help works so I have to think I'm connected properly.
With the http interface, I am able to do basic commands, but the command set is quite limited. For example, I can't do commands such as setting the speed (faster, slower) or commands to set the aspect ratio etc.
To the OP: I do know how to pause using http, though, with this tcl command, but you have to enable the http interface, which I do in prefs, but can be done on the command line with, -I http or -extraintf http.
Code: Select all
package require http
set ::playerhost <ip address or localhost for local machine>
::http::geturl "http://$::playerhost:8080/requests/status.xml?command=pl_pause"
Here are a handful of others I've figured out,
::http::geturl "http://$::playerhost:8080/requests/status.xml?command=fullscreen"
::http::geturl "http://$::playerhost:8080/requests/status.xml?command=volume&val=60"
:http::geturl "http://$::playerhost:8080/requests/status.xml?command=seek&val=-2m"
::http::geturl "http://$::playerhost:8080/requests/status.xml?command=seek&val=-30s"
(seek forward - with encoded plus sign %2B, +2 minutes)
::http::geturl "http://$::playerhost:8080/requests/status.xml?command=seek&val=%2B2m"
::http::geturl "http://$::playerhost:8080/requests/status.xml?command=pl_stop"