Web Interface
Enable web interface of VLC
Activate the web interface of VideoLAN Client:
- Open VLC
- Click on Tools >> Preferences
- Select Show settings >> All in the bottom left corner
- Click on Interface >> Main interfaces
- Check the HTTP remote control interface checkbox
- Make sure the main interface (interface module) is still Default, otherwise you won't have a GUI for VLC any more
- Click Save
To control VLC from a different device and to have full control:
Edit
.hosts file to allow network connection
- Close VLC
- Go to the installation directory of VLC (referred to as <DIRECTORY_of_VLC>)
- Either download our provided vlc.zip file [easy]:
- Open the zip file
- Copy the folder http from the zip file into the directory of VLC
- Make sure that all folders and files are replaced:
- The files may be hidden
- Replace .hosts inside of <DIRECTORY_of_VLC>/http directory
- Replace status.xml inside of <DIRECTORY_of_VLC>/http/requests directory
- Or perform the changes manually [advanced]:
- Open the folder http
- Open the file .hosts for editing (may be hidden)
- Find the section private addresses
- Uncomment (remove #-sign) the following lines (lines 14-19)
- Save the file
- Open the directory <DIRECTORY_of_VLC>/http/requests
- Open the file status.xml for editing
- Go to line 103-105
- Look for this:
<vlc id="if" param1="command value 'key' strcmp 0 =" />
<vlc id="rpn" param1="'key-' val value strcat 'VLC_OBJECT_LIBVLC' vlc_var_get key-pressed 'VLC_OBJECT_LIBVLC' vlc_var_set" />
<vlc id="end"/>
- and change it to:
<vlc id="if" param1="command value 'key' strcmp 0 =" />
<vlc id="rpn" param1="'key-' val value strcat vlc_config_get key-pressed 'VLC_OBJECT_LIBVLC' vlc_var_set" />
<vlc id="end"/>
Optional tests (VLC must be running):
- Test the connection locally: Enter http://localhost:8080 (be sure to replace 8080 with VLC's port) in a browser on your computer
- It is working: VLC's web interface is up and running
- It is not working: Check if VLC's web interface is correctly enabled
- Test the connection locally with IP: Enter http://[IP-ADDRESS]:8080 (replace 8080 with VLC's port and [IP-ADDRESS] with the IP address of the PC where the service is running) in a browser on your computer
- It is working: VLC's web interface can be accessed via the IP address of the computer
- It is not working: Check if .hosts file has been changed correctly
- Test the connection remotely: Enter http://[IP-ADDRESS]:8080
(replace 8080 with VLC's port and [IP-ADDRESS] with the IP-address of
the PC where the service is running) in a browser on a different device
- It is working: VLC's web interface can be accessed remotely
- It is not working: VLC or its port is blocked by a security program
No comments:
Post a Comment