views:

306

answers:

2

I'm running VLC (a media player) in Windows 7. Is there way to control (as in: play, pause, set volume) a running instance of VLC from Python?

+3  A: 

Yes, you can control it via telnet (with telnetlib). There are also libvlc bindings, but I'm not sure you can use that to control an existing VLC instance.

Mauricio Scheffer
Thanks .. though I wonder if there is a COM interface for VLC. That way, I can control VLC without having to configure it (by passing `--intf` program argument, for instance).
Sridhar Ratnakumar
You can use the python bindings to control your own instance, if that helps.
rogerdpack
A: 

As a general alternative to already mentioned solutions it's good to know about pywinauto

Toni Ruža