Difference between revisions of "Control VLC via a browser"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Reverted edits by Avol (Talk); changed back to last version by H2g2bob)
(Adding instructions for the UI, for people who don't like the terminal)
Line 1: Line 1:
 
{{howto|Use the HTTP interface to control VLC from a web browser}}
 
{{howto|Use the HTTP interface to control VLC from a web browser}}
  
* Start VLC on the server with the [[Web Interface|http]] [[interface]]
+
* Start VLC on the server with the [[Web Interface|http]] [[interface]], in one of two ways:
vlc -I http
+
**Start up VLC normally and go to Settings -> Add interface -> Web interface, OR
You can use '''--extraintf''' if you want to specify more than one interface (see [[interface]] for details)
+
**At the terminal
* If you want to bind VLC to a specific host and port use '''--http-host host:port'''
+
*** type '''vlc -I http'''
* Open your favourite web browser on the client
+
*** add '''--extraintf''' if you want to specify more than one interface (see [[interface]] for details)
 +
*** use '''--http-host host:port''' if you want to bind VLC to a specific host and port
 +
* Open your favorite 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)
 
* 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.
 
*: 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 the files to be streamed to the playlist like /home/file.mpg (unless you use the UI to select the file in the next step)
* Add streaming destination in the sout field udp://<client>:1234
+
* Add streaming destination to the server in the sout field udp://<client>:1234, using these steps in the UI:
* Open VLC on the client, with VLC udp://@:1234
+
**Go to File -> Open File
 +
**Click Browse to select the file you want to play
 +
**Select Stream/Save and click Settings
 +
**Optional: Select Play Locally to make sure everything is working correctly
 +
**Select UDP and fill in the client IP address and port number (default: 1234)
 +
**Click OK, OK, and press play
 +
* Open VLC on the client to receive the video stream, in one of two ways:
 +
**At the terminal, with '''vlc udp://@:1234'''
 +
**Start up VLC normally
 +
***Go to File -> Open network stream...
 +
***Leave the default options (Radio button UDP selected, port set to 1234)
 +
***Press OK

Revision as of 01:22, 5 May 2008

This page describes how to use the HTTP interface to control VLC from a web browser. Other "how to" pages
  • Start VLC on the server with the http interface, in one of two ways:
    • Start up VLC normally and go to Settings -> Add interface -> Web interface, OR
    • At the terminal
      • type vlc -I http
      • add --extraintf if you want to specify more than one interface (see interface for details)
      • use --http-host host:port if you want to bind VLC to a specific host and port
  • Open your favorite 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 (unless you use the UI to select the file in the next step)
  • Add streaming destination to the server in the sout field udp://<client>:1234, using these steps in the UI:
    • Go to File -> Open File
    • Click Browse to select the file you want to play
    • Select Stream/Save and click Settings
    • Optional: Select Play Locally to make sure everything is working correctly
    • Select UDP and fill in the client IP address and port number (default: 1234)
    • Click OK, OK, and press play
  • Open VLC on the client to receive the video stream, in one of two ways:
    • At the terminal, with vlc udp://@:1234
    • Start up VLC normally
      • Go to File -> Open network stream...
      • Leave the default options (Radio button UDP selected, port set to 1234)
      • Press OK