Documentation:Modules/http intf

From VideoLAN Wiki
Jump to navigation Jump to search

It is possible to Control VLC via a browser via an extra interface witch can be enabled by going to Settings > Add Interface > Web Interface.

To use this interface as the primary interface, launch VLC with the parameter "-I http" or set http to be the primary interface via the preferences (in versions .8+ you go to Preferences > Interface > General > Interface module: http remote control interface. To launch it as a secondary interface you should launch VLC with the parameter "--extraintf=http" or set http as an extra-interface in the Preferences area mentioned above.

Now when you start VLC, a web interface will be created on port 8080. The options --http-addr and --http-port can be used to specify an IP and the port on which you want to run the interface.

It is now also possible to customize the Web interface. See the html pages in share/html (within the VLC directory for Windows, within the VLC.app package on Mac OS X and somewhere in /usr/local for Linux). This can be a very cool interface if you spent some time developing nice UI elements. If you would like to contribute a new 'Default' html interface, you are also very welcome (keep it small).

An additional theme has been created (by Lucas Steigmeyer a.k.a. Plezops) specifically for PDA's or PSP's in mind. This additonal theme has a grey theme and will fit nicely on most portable versions of web browsers. The theme has the layout reordered to fit the screen better. You may download this theme from OrrentDesign.com. A readme file is included. View for install instructions and other info.

Note: On versions of VLC (windows) that are greater than .8 (possibly previous versions, though not confirmed) the HTTP interface index file is stored in the "http" folder in the VLC folder. There are no help files bundled with the download however you may find help files in the online Wiki and how-to, or readme's.

Note: A new http interface is available since 0.8.5. However this new interface does not work on handhelp PDA's running the Windows Mobile OS, it also does not work with javascript turned off in your browser. If you want to use the old interface, use http://<ip>:<port>/old/.

For more information about the HTTP interface, see the document "VLC Play-Howto", the paragraph "The HTTP interface" in chapter 4 ("Advanced use of VLC") and appendix B "Building pages for the HTTP interface".


Related topic

Additional Interfaces