How to connect to vlc web interface?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
06XxwQW5gJ
New Cone
New Cone
Posts: 8
Joined: 14 Mar 2011 07:28

How to connect to vlc web interface?

Postby 06XxwQW5gJ » 24 Feb 2013 04:32

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....

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: How to connect to vlc web interface?

Postby mederi » 24 Feb 2013 14:26

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

06XxwQW5gJ
New Cone
New Cone
Posts: 8
Joined: 14 Mar 2011 07:28

Re: How to connect to vlc web interface?

Postby 06XxwQW5gJ » 24 Feb 2013 20:55

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)

06XxwQW5gJ
New Cone
New Cone
Posts: 8
Joined: 14 Mar 2011 07:28

Re: How to connect to vlc web interface?

Postby 06XxwQW5gJ » 28 Feb 2013 04:02

hello? anyone can answer my basic question?

Rémi Denis-Courmont
Developer
Developer
Posts: 15314
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to connect to vlc web interface?

Postby Rémi Denis-Courmont » 28 Feb 2013 16:14

mederi already did.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

06XxwQW5gJ
New Cone
New Cone
Posts: 8
Joined: 14 Mar 2011 07:28

Re: How to connect to vlc web interface?

Postby 06XxwQW5gJ » 01 Mar 2013 00:40

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: How to connect to vlc web interface?

Postby mederi » 01 Mar 2013 15:53

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?

06XxwQW5gJ
New Cone
New Cone
Posts: 8
Joined: 14 Mar 2011 07:28

Re: How to connect to vlc web interface?

Postby 06XxwQW5gJ » 01 Mar 2013 20:25

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 48 guests