Difference between revisions of "Control VLC via a browser"

From VideoLAN Wiki
Jump to navigation Jump to search
(tweaked the syntax once again (please use # for numbering listings))
Line 1: Line 1:
# Start VLC on the server with VLC -I dummy --extraintf http 
+
{{howto|Use the HTTP interface to control VLC from a web browser}}
# If you want to bind VLC to a specific host or port use --http-host host:port
+
 
# Open your favourite webbrowser on the client
+
* Start VLC on the server with the [[Web Interface|http]] [[interface]]
# Load VLC http interface from browser with http://host:port (will default to hostname:8080)
+
vlc -I http
# Add the files to be streamed to the playlist like /home/file.mpg
+
You can use '''--extraintf''' if you want to specify more than one interface (see [[interface]] for details)
# Add streaming destination in the sout field udp://<client>:1234
+
* If you want to bind VLC to a specific host and port use '''--http-host host:port'''
# Open VLC on the client, with VLC udp://@:1234
+
* Open your favourite web browser on the client
 +
* Type the IP address (or URL) of the host in the location field (address bar). You may need to specify the port (VLC defalts to using port 8080)
 +
*: An example is http://127.0.0.1:8080 - 127.0.0.1 refers to the local machine.
 +
* Add the files to be streamed to the playlist like /home/file.mpg
 +
* Add streaming destination in the sout field udp://<client>:1234
 +
* Open VLC on the client, with VLC udp://@:1234

Revision as of 14:46, 16 January 2006

This page describes how to use the HTTP interface to control VLC from a web browser. Other "how to" pages
vlc -I http

You can use --extraintf if you want to specify more than one interface (see interface for details)

  • If you want to bind VLC to a specific host and port use --http-host host:port
  • Open your favourite web browser on the client
  • Type the IP address (or URL) of the host in the location field (address bar). You may need to specify the port (VLC defalts to using port 8080)
    An example is http://127.0.0.1:8080 - 127.0.0.1 refers to the local machine.
  • Add the files to be streamed to the playlist like /home/file.mpg
  • Add streaming destination in the sout field udp://<client>:1234
  • Open VLC on the client, with VLC udp://@:1234