Page 1 of 1

How to connect to vlc web interface?

Posted: 24 Feb 2013 04:32
by 06XxwQW5gJ
Hi,

How can I connect to the VLC web interface? I got three very, very simple task:

1# I want to be able to control the playlist (add/remove items)
2# I want to be able to change the navigation bar of current active item (example: for 5m into a 10m movie)
3# I want to be able to get information of current movie in VLC (what movie it is, where its located, the time stamp, etc)

Is this possible? I cant seem to find any information. What little info I can find in the vlc wiki is very confusing and makes no sense to me (lots of talking about a macro).

Is it a socket I can connect to? Is there a webpage I can send GET/POST vars to?

edit: I want to do this in PHP. Not that it really shouldn't matter...
edit2: wow, cant even connect in the web browser. Whats going on? No documentation and software that feature that doesn't work?
edit3: Seems to be a bug in vlc. port 8080 is used and it wont let me change it. Completely losing my patience with this, I want to program, not bash my head against a wall trying to get basics working with VLC....

Re: How to connect to vlc web interface?

Posted: 24 Feb 2013 14:26
by mederi
CLI options:
Network settings:
...
--http-host=<string> HTTP server address
By default, the server will listen on any local IP address. Specify
an IP address (e.g. ::1 or 127.0.0.1) or a host name (e.g. localhost)
to restrict them to a specific network interface.
--http-port=<integer [1 .. 65535]>
HTTP server port
The HTTP server will listen on this TCP port. The standard HTTP port
number is 80. However allocation of port numbers below 1025 is
usually restricted by the operating system.
...
Default: http://localhost:8080

Re: How to connect to vlc web interface?

Posted: 24 Feb 2013 20:55
by 06XxwQW5gJ
well I installed VLC on an vm image and that works, but that doesnt solve my two problems:

1# How to get it working on my computer (port 8080 is used by something else, and VLC wont let me change it)
2# Once I get it working, how can I connect to it from something (like PHP, C++,C#/vb.net, java)

Re: How to connect to vlc web interface?

Posted: 28 Feb 2013 04:02
by 06XxwQW5gJ
hello? anyone can answer my basic question?

Re: How to connect to vlc web interface?

Posted: 28 Feb 2013 16:14
by Rémi Denis-Courmont
mederi already did.

Re: How to connect to vlc web interface?

Posted: 01 Mar 2013 00:40
by 06XxwQW5gJ
Not only did he not answer my question, but I was not even able to change the port number to get the web interface working.

edit: Found this: http://git.videolan.org/?p=vlc.git;a=bl ... xt;hb=HEAD

You guys should did a really good job at hiding that information that is crucial if you want to do anything with the web interface.

Re: How to connect to vlc web interface?

Posted: 01 Mar 2013 15:53
by mederi
So if you enable Web interface from VLC menu: View > Add Interface > Web, can't you see VLC's web page at http://localhost:8080 in your Internet browser in the same computer?

Re: How to connect to vlc web interface?

Posted: 01 Mar 2013 20:25
by 06XxwQW5gJ
I can now, that was not working because that port was being used by another program.

I had to add "--http-port=7894" to the shortcut so it would change the port (changing the VLC config file had no effect).

I haven't started coding my app yet, but so far this web interface controls seem so much more powerful then MPC.