Showing posts with label VLC. Show all posts
Showing posts with label VLC. Show all posts

Friday, September 30, 2011

VLC player comes to Android

Web Interface


Enable web interface of VLC
Activate the web interface of VideoLAN Client:
  1. Open VLC
  2. Click on Tools >> Preferences
  3. Select Show settings >> All in the bottom left corner
  4. Click on Interface >> Main interfaces
  5. Check the HTTP remote control interface checkbox
  6. Make sure the main interface (interface module) is still Default, otherwise you won't have a GUI for VLC any more
  7. Click Save
To control VLC from a different device and to have full control:
Edit .hosts file to allow network connection
  1. Close VLC
  2. Go to the installation directory of VLC (referred to as <DIRECTORY_of_VLC>)
  3. Either download our provided vlc.zip file [easy]:
    1. Open the zip file
    2. Copy the folder http from the zip file into the directory of VLC
    3. 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 

         

  4. Or perform the changes manually [advanced]:
    1. Open the folder http
    2. Open the file .hosts for editing (may be hidden)
    3. Find the section private addresses
    4. Uncomment (remove #-sign) the following lines (lines 14-19)
    5. Save the file
    6. Open the directory <DIRECTORY_of_VLC>/http/requests
    7. Open the file status.xml for editing
    8. Go to line 103-105
    9. Look for this:
    1.  <vlc id="if" param1="command value 'key' strcmp 0 =" />
    2.     <vlc id="rpn" param1="'key-' val value strcat 'VLC_OBJECT_LIBVLC' vlc_var_get key-pressed 'VLC_OBJECT_LIBVLC' vlc_var_set" />
    3.  <vlc id="end"/>
    and change it to:
    1.  <vlc id="if" param1="command value 'key' strcmp 0 =" />
    2.     <vlc id="rpn" param1="'key-' val value strcat vlc_config_get key-pressed 'VLC_OBJECT_LIBVLC' vlc_var_set" />
    3.  <vlc id="end"/>
Optional tests (VLC must be running):
  1. 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
  2. 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
  3. 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