Difference between revisions of "Windows"

From VideoLAN Wiki
Jump to navigation Jump to search
(Added section "How to store streaming station presets")
m (Formatting tweaks)
 
(40 intermediate revisions by 18 users not shown)
Line 1: Line 1:
The '''Windows port''' of VLC usually starts up with the [[WxWindows]] interface which is used in the [[Linux]] one as well. The user can decide to use the [[Skins]] interface instead to be able to modify the interface according to his or her mood.
+
{{Languages}}
  
==Keyboard shortcuts in the Windows (directx) video output==
+
The '''Windows port''' of VLC usually starts up with the [[Qt]] interface which is used in the [[Linux]] one as well. The user can decide to use the [[Skins]] interface instead to be able to modify the interface according to his or her mood.
 +
[[File:VLC_-_main.png|thumb|alt=Refer to caption|Main window]]
 +
 
 +
== Frequently Asked Questions ==
 +
There are some user-maintained FAQs (as distinct from the official VLC FAQ that may be found [https://www.videolan.org/support/faq.html here]):
 +
* [[WindowsFAQ-2.1.x|Version 2.1 and newer]]
 +
* [[WindowsFAQ-2.0.x|Version 2.0.x]]
 +
* [[WindowsFAQ-1.1.x|Version 1.1.x]]
 +
* [[WindowsFAQ-1.0.x|Version 1.0.x]]
 +
* [[WindowsFAQ-0.9.x|Version 0.9.x]]
 +
* [[WindowsFAQ-0.8.x|Version 0.8.x]]
 +
 
 +
== Keyboard shortcuts in the Windows (DirectX) video output ==
 +
{{See also|QtHotkeys|How to set global hotkeys}}
  
 
Note: these shortcuts are only default settings and can be customized (along with many others). To tweak hotkeys settings, go to Settings->Preferences->Interface->Hotkeys settings
 
Note: these shortcuts are only default settings and can be customized (along with many others). To tweak hotkeys settings, go to Settings->Preferences->Interface->Hotkeys settings
Line 52: Line 65:
 
|}
 
|}
  
==How to store streaming station presets==
+
== How to store streaming station presets ==
  
To use VLC as a streaming client, store your station presets under the Media Library on the Playlist panel (not the bookmarks and not the actual playlist).
+
To use VLC as a streaming client, store your station presets under the Media Library on the Playlist panel (''not'' the bookmarks and ''not'' the actual playlist itself).
#Open the playlist panel (Ctrl-L or click on the Playlist button).
+
#Open the playlist panel (<kbd>Ctrl-L</kbd> or click on the Playlist button).
 
#Click on the Plus button at the bottom of the panel. (A dropdown menu will appear.)
 
#Click on the Plus button at the bottom of the panel. (A dropdown menu will appear.)
 
#Select "Advanced Open" from the dropdown menu. (A new panel, named Open Media, will appear.)
 
#Select "Advanced Open" from the dropdown menu. (A new panel, named Open Media, will appear.)
Line 62: Line 75:
 
#Click the Enqueue button at the bottom of the panel.
 
#Click the Enqueue button at the bottom of the panel.
  
==How to associate media files to VLC==
+
== How to associate media files with VLC ==
 +
{{See also|VLC HowTo/Make VLC the default player#Windows}}
 +
 
 +
This should be done through the VLC settings interface, choose "Tools | Preferences " and then click on the "Set up Associations..." button.
 +
Select any file extension that you wish to open with VLC, then click "Apply". This should change all media files icons to the VLC cone, and double-clicking any of them should open VLC and immediately start playing the media.
 +
 
 +
If this seems to have no effect on the UI, and/or double-clicking the file icon does not start VLC, check that you have correctly set Windows preferences through "Start | Default Programs" (on Vista; see the relevant item on Windows XP or newer Windows OS; possibly this is not applicable to Windows 2000).
 +
In that UI click on "Set default programs", select the "VLC media player" item and check the description (it will usually say "All default settings for this program are active"). Then choose your own course of actions by either clicking on "Set this program as default" or "Choose default settings for this program".
  
VLC hasn't got a module to associate files so that if you click on a file VLC automatically opens. The developers are working on this, and one should be available in the next full release. But you can do it yourself by choosing one of these three options:
+
Other ways to achieve the same effects are as follows (not really recommended).
  
===Use Windows Explorer's context menu===
+
=== Use Windows Explorer's context menu ===
  
 
#In Windows Explorer, ''right''-click a file you wish to open.
 
#In Windows Explorer, ''right''-click a file you wish to open.
#Clicking Open With from the context menu that pops up.
+
#Click "Open With" in the context menu that pops up.
#Clicking the VLC's program name.
+
#Click "VLC media player" to use VLC just this once, or click "Default program..."
 +
#Click the name of the program (VLC) which you want to be used to open the file.
 
#*If VLC is not displayed, click Browse to locate it on your hard drive.
 
#*If VLC is not displayed, click Browse to locate it on your hard drive.
  
Alternatively, you can:
+
Alternatively:
 
 
 
#In Windows Explorer, ''right''-click the file you want to open with VLC.
 
#In Windows Explorer, ''right''-click the file you want to open with VLC.
 
#Click Properties in the context menu that pops up.
 
#Click Properties in the context menu that pops up.
#On the General tab, click Change.  
+
#On the General tab, click Change.
#Click the name of the program (VLC) which you want to be used to open the file.  
+
#Click the name of the program (VLC) which you want to be used to open the file.
  
 
Either of these options affects all files that have the same filename extension (the letters after the filename's period) as the file you selected. For example, if you change the program that opens ''goober.avi'', then all ''.avi'' files will be opened with VLC.
 
Either of these options affects all files that have the same filename extension (the letters after the filename's period) as the file you selected. For example, if you change the program that opens ''goober.avi'', then all ''.avi'' files will be opened with VLC.
  
===Rerun the installer===
+
=== Rerun the installer ===
#Reinstall VLC and choose the "associate files" option when it comes up.
+
#Reinstall VLC and choose the "associate files" option when it comes up. <em>'''Please note'''</em> that on Vista and newer systems this will not cure the 'Windows Media Player won't go away' symptom, and you should go the "Set default program" route instead, as described above.
 +
 
 +
=== Edit the registry ===
 +
'''''Warning''''': this instruction set is outdated and should ''not'' be used. Direct registry editing should be avoided anyway unless you're desperate and you really ''really'' know what you're doing.
  
===Edit the registry===
 
 
'''Warning''': use this technique only if you really know what you are doing! And be sure to back-up your registry first.
 
'''Warning''': use this technique only if you really know what you are doing! And be sure to back-up your registry first.
  
 
#Open a text editor, like Notepad (but not WordPad).
 
#Open a text editor, like Notepad (but not WordPad).
 
#Copy this text below.
 
#Copy this text below.
#Modify the strings ''C:\\Program Files\\VideoLAN\\VLC\\vlc.exe'' to match your VLC installation.
+
#Modify the strings <code>C:\\Program Files\\VideoLAN\\VLC\\vlc.exe</code> to match your VLC installation.
 
#Save as ''vlc.reg''.
 
#Save as ''vlc.reg''.
 
#Execute ''vlc.reg'' (adding this data to your registry).
 
#Execute ''vlc.reg'' (adding this data to your registry).
Line 96: Line 118:
  
 
Text to copy:
 
Text to copy:
<pre>
+
<syntaxhighlight lang="ini">
 
Windows Registry Editor Version 5.00
 
Windows Registry Editor Version 5.00
  
Line 132: Line 154:
 
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
 
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
 
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe \"%L\""
 
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe \"%L\""
</pre>
+
</syntaxhighlight>
  
 
'''Note''': This associates ''asf'', ''asx'', ''avi'', ''divx'', ''mpeg'', ''mpg'', ''vob'' and ''wmv'' files. If you get the idea, you can associate any file you want.
 
'''Note''': This associates ''asf'', ''asx'', ''avi'', ''divx'', ''mpeg'', ''mpg'', ''vob'' and ''wmv'' files. If you get the idea, you can associate any file you want.
  
==How To Start VLC Server with http Interface==
+
== How To Start VLC Server with http Interface ==
VLC ships with a little HTTP server integrated. It is used both to stream using HTTP, and for the HTTP remote control interface.
+
VLC ships with a little HTTP server integrated. It is used both to stream using HTTP, and for the HTTP remote control interface.
 
 
===VLC Server Preferences Settings===
 
1. Set up the http interface details in the VLC server application. Open VLC then select Settings > Preferences.  Click on the Advanced Settings button in the lower right hand corner of the dialog box to see all the options that are available.
 
 
 
2. In the left hand window click on the + button next to Interface. This will display three choices. Control interfaces, Hotkeys settings, and Main Interfaces.  Click on the plus button next to Main interfaces. This will display four settings HTTP, RC, Skins, wxWidgets. Click on HTTP to dispaly the "HTTP remote control interface settings".
 
 
 
3. Host address: Enter the port number that you want to use.  Default is 8080.
 
 
 
4. Source directory: c:\Program Files\VideoLan\VLC\http\ or enter the path where you have elected to install the application.
 
 
 
5. Character set: UTF-8 default
 
 
 
6. If you are NOT using handlers or SSL certificates the setup is complete.  
 
  
7. Click on the Save button in the lower left hand corner.
+
=== Step 1: VLC Server Preferences Settings ===
 +
# Set up the http interface details in the VLC server application: Open VLC, then select Tools > Preferences. In the bottom left corner of the window, under "Show settings", click "All".
 +
# In the left-hand menu click on the + button next to Interface. This will display three choices: Control interfaces, Hotkeys settings, and Main Interfaces. Click "Main Interfaces". Select "HTTP remote control interface".
 +
# Click on the plus button next to "Main interfaces". This will display four settings: HTTP, Qt, RC, and Skins. Click on HTTP to display the "HTTP remote control interface" settings.
 +
# Host address: Address and port the HTTP will listen on, defaults to 0.0.0.0:8080. Set to 127.0.0.1 (a.k.a. localhost) if you want only the local machine.
 +
# Source directory: If you have installed VLC in a different folder than the default, enter '''path\to\VLC\'''\http.
 +
# If you are NOT using handlers or SSL certificates the setup is complete.
 +
# Click on the Save button in the lower right hand of the window.
 +
# If needed, edit the .hosts file in the vlc/http directory. By default only "localhost" is allowed, edit to enable other hosts.
 +
# Exit and restart VLC
  
===Command Line Startup===
+
=== Step 2: Command Line Startup ===
  
The VLC appplication can be run in a server or client environment. For complicated
+
The VLC application can be run in a server or client environment. For complicated
 
video and audio streaming on a LAN, one should consider dedicating a machine to act
 
video and audio streaming on a LAN, one should consider dedicating a machine to act
 
as the VLC server.
 
as the VLC server.
Line 164: Line 182:
 
location for installation was selected.
 
location for installation was selected.
  
<nowiki>"C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf http --intf wx</nowiki>
+
{{%}} "C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf http --intf wx
  
===Testing the Interface===
+
=== Step 3: Testing the Interface ===
  
 
From another computer, connect to the VLC server computer using your browser to the URL
 
From another computer, connect to the VLC server computer using your browser to the URL
Line 174: Line 192:
 
The Main VLC Interface page will be displayed,
 
The Main VLC Interface page will be displayed,
  
See [[Web_Interface]] for additional information
+
See [[Web Interface]] for additional information
  
==VLC Plugin for Internet Explorer==
+
== VLC Plugin for Internet Explorer ==
  
 
This section will provide guidelines to incorporate the VLC ActiveX plugin to be used to view streaming audio and video from a VLC server.
 
This section will provide guidelines to incorporate the VLC ActiveX plugin to be used to view streaming audio and video from a VLC server.
  
How to embed the ActiveX Plugin in a Web Page: [[ActiveX/HTML]]
+
* How to embed the ActiveX Plugin in a Web Page: [[ActiveX/HTML]]
 
+
* Supported ActiveX Function Calls: [[ActiveX]]
Supported ActiveX Function Calls: [[ActiveX]]
 
 
 
==VLC Plugin for Firefox (Mozilla)==
 
The Mozilla plugin
 
(Excerpted from the [[Documentation:Play_HowTo/Advanced_Use_of_VLC#The_Mozilla_plugin|VLC User Guide]])
 
  
'''Install'''
+
== VLC Plugin for Firefox (Mozilla) ==
 +
{{See also|Plugins/Mozilla}}
  
There are at least two ways to install the VLC Mozilla Plugin. One way is to to check the "Install Firefox Plugin" when you install VLC.
+
=== Install ===
 +
There are at least two ways to install the VLC Mozilla Plugin. One way is to to check the "Install Firefox Plugin" when you install VLC.
  
If the standard exe installation does not install the mozilla plugin directory then download zip version which includes the required data and continue with the next installation (2nd way of installing of the plugin)
+
If the standard exe installation does not install the mozilla plugin directory, then download zip version which includes the required data, and continue with the next installation (2nd way of installing of the plugin)
  
 
The second way involves several steps:
 
The second way involves several steps:
 
1. Quit Firefox or Mozilla
 
 
2. Copy the two files in VLC_Installation_folder\mozilla (usually C:\Program Files\VideoLAN\VLC\mozilla) to your mozilla plugins directory (Usually C:\Program Files\Mozilla\plugins or C:\Program Files\Mozilla Firefox\plugins).
 
 
3. Restart Firefox or Mozilla
 
 
'''Use the plugin'''
 
 
If you open a link to a video file handled by the VLC plugin (To get the list of handled types, browse to about:plugins) or a page with an embedded video, the plugin should open and read the video.
 
 
'''Build HTML pages that use the plugin (VLC version > 0.8.5)'''
 
 
Check the [[Documentation:WebPlugin|WebPlugin]] documentation for information on the Javascript API.  It's substantially changed since v0.8.5.
 
 
'''Build HTML pages that use the plugin (VLC version up to 0.8.5)'''
 
 
Additionally to viewing video on all pages, you can build custom pages that will use the advanced features of the plugin, using Javascript functions to control playback or extract information from the plugin.
 
 
The vlc plugin for Firefox/Mozilla supports the following function calls:
 
 
      play() : Start playing media in the plugin.
 
      pause() : Pause playback.
 
      stop() : Stop media playback.
 
      fullscreen() : Switch the video to full screen.
 
      set_volume(vol) : Set the volume. vol has to be an int in the 0-200 range.
 
      get_volume() : Get the current volume setting.
 
      mute() : Toggle volume muting.
 
      set_int_variable(var_name, value) :
 
      set_bool_variable(var_name, value) :
 
      set_str_variable(var_name, value) :
 
      get_int_variable(var_name) :
 
      get_bool_variable(var_name) :
 
      get_str_variable(var_name) :
 
      clear_playlist() : Clear the playlist.
 
      add_item(mrl>) : Append an item whose location is given by the Media Resource Locator to the playlist.
 
      next()
 
      previous()
 
      isplaying() : return true if the plugin is playing something.
 
      get_length() : Get the media's length in seconds.
 
      get_position() : Get the current position in the media in percent.
 
      get_time() : Get the current position in the media in seconds.
 
      seek(seconds,is_relative) : If is_relative is true, seek relatively to current time, else seek from beginning of the stream. Seek time is specified in seconds.
 
 
Here are a few examples of HTML pages that use the Mozilla plugin.
 
Example 1
 
 
In this example, the plugin will read an HTTP stream inside the web page. If the user goes fullscreen, he will have to press f to go back in normal view.
 
 
<pre>
 
<html>
 
<head><title>Demo of VLC mozilla plugin</title></head>
 
 
<body>
 
 
== Related article ==
 
* [[Common Problems]]
 
* [[VLC command-line help]]
 
* [[VLCSout]] - converting between formats
 
 
[[Category:Operating systems]]
 
  
<h1>Demo of VLC mozilla plugin - Example 2</h1>
+
# Quit Firefox or Mozilla
 +
# Copy the two files in <code>VLC_Installation_folder\mozilla</code> (usually <code>C:\Program Files\VideoLAN\VLC\mozilla</code>) to your mozilla plugins directory (Usually <code>C:\Program Files\Mozilla\plugins</code> or <code>C:\Program Files\Mozilla Firefox\plugins</code>).
 +
# Restart Firefox or Mozilla
  
<embed type="application/x-vlc-plugin"
+
=== Use the Mozilla plugin ===
        name="video2"
 
        autoplay="no" loop="no" hidden="yes"
 
        target="udp:@239.255.12.42" />
 
<br />
 
  <a href="javascript:;" onclick='document.video2.play()'>Play video2</a>
 
  <a href="javascript:;" onclick='document.video2.stop()'>Stop video2</a>
 
  <a href="javascript:;" onclick='document.video2.fullscreen()'>Fullscreen</a>
 
  
</body>
+
If in the browser you open a link to an audio or video URL handled by the VLC plugin, or if a web page has HTML code that embeds audio or video handled by the VLC plugin, then the plugin should start and play the audio/video.
</html>
+
Note the plugin (as of version 1.1.9) does not present any user interface&nbsp;— it has no default control panel and no keyboard shortcuts.
</pre>
 
  
More example code, as well as a working implementation using Javascript, XHTML, and PHP that auto-detects browsers (the code is good, but the stream doesn't work) can be found at http://altair.videolan.org/~dionoea/vlc-plugin-demo/
+
To get the list of the media types handled by the VLC plugin, browse to '''about:plugins'''.
 +
Conflicts will arise if you have more than one plugin installed that supports the same media type.
  
<h1>Demo of VLC mozilla plugin - Example 2</h1>
+
See the [[Documentation:WebPlugin|Web plugin documentation]] to create HTML pages that use JavaScript to control the plugin.
  
<pre>
+
More example code, as well as a working implementation using JavaScript, XHTML, and PHP that auto-detects browsers (the code is good, but the stream doesn't work) can be found at https://web.archive.org/web/20170830175009/http://altair.videolan.org:80/~dionoea/vlc-plugin-demo/
<embed type="application/x-vlc-plugin"
 
        name="video2"
 
        autoplay="no" loop="no" hidden="yes"
 
        target="udp:@239.255.12.42" />
 
<br />
 
<a href="javascript:;" onclick='document.video2.play()'>Play video2</a>
 
<a href="javascript:;" onclick='document.video2.stop()'>Stop video2</a>
 
<a href="javascript:;" onclick='document.video2.fullscreen()'>Fullscreen</a>
 
</pre>
 
  
More example code, as well as a working implementation using Javascript, XHTML, and PHP that auto-detects browsers (the code is good, but the stream doesn't work) can be found at http://altair.videolan.org/~dionoea/vlc-plugin-demo/
+
== Portable VLC ==
 +
A version of VLC in a portable format exists. It is useful, for example, if you want to put it on a USB stick and use it on computers you don't own. It can also be very useful on your own computer: if you have to reinstall Windows, you won't need to reinstall VLC, it will be up and running almost instantly:<br>
 +
http://portableapps.com/apps/music_video/vlc_portable
  
== Related article ==
+
== Related articles ==
 
* [[Common Problems]]
 
* [[Common Problems]]
 
* [[VLC command-line help]]
 
* [[VLC command-line help]]
* [[VLCSout]] how to create a DVD
+
* [[VLC HowTo/Make a DVD]]
  
[[Category:Operating systems]]
+
[[Category:Windows|*]]

Latest revision as of 11:07, 9 February 2019

The Windows port of VLC usually starts up with the Qt interface which is used in the Linux one as well. The user can decide to use the Skins interface instead to be able to modify the interface according to his or her mood.

Refer to caption
Main window

Frequently Asked Questions

There are some user-maintained FAQs (as distinct from the official VLC FAQ that may be found here):

Keyboard shortcuts in the Windows (DirectX) video output

Note: these shortcuts are only default settings and can be customized (along with many others). To tweak hotkeys settings, go to Settings->Preferences->Interface->Hotkeys settings

F Fullscreen
Space Play/Pause
T Show position (time)
S Stop
Ctrl+Q Quit
+/- Faster/Slower
N/P Next/Previous
Shift+Left/Shift+Right Jump very short
Alt+Left/Alt+Right Jump short
Ctrl+Left/Ctrl+Right Jump medium
Ctrl+Alt+Left/Ctrl+Alt+Right Jump long
Ctrl+Up/Ctrl+Down Volume up/down
M Mute
Ctrl+M Show DVD-menu
Left/Right
Up/Down
Enter
DVD-menu navigation keys

How to store streaming station presets

To use VLC as a streaming client, store your station presets under the Media Library on the Playlist panel (not the bookmarks and not the actual playlist itself).

  1. Open the playlist panel (Ctrl-L or click on the Playlist button).
  2. Click on the Plus button at the bottom of the panel. (A dropdown menu will appear.)
  3. Select "Advanced Open" from the dropdown menu. (A new panel, named Open Media, will appear.)
  4. Select the "Networking" tab on the Open Media panel.
  5. Enter the full URL of the streaming station in the Address field. e.g. http://mystation.org:8000/mystream.ogg
  6. Click the Enqueue button at the bottom of the panel.

How to associate media files with VLC

This should be done through the VLC settings interface, choose "Tools | Preferences " and then click on the "Set up Associations..." button. Select any file extension that you wish to open with VLC, then click "Apply". This should change all media files icons to the VLC cone, and double-clicking any of them should open VLC and immediately start playing the media.

If this seems to have no effect on the UI, and/or double-clicking the file icon does not start VLC, check that you have correctly set Windows preferences through "Start | Default Programs" (on Vista; see the relevant item on Windows XP or newer Windows OS; possibly this is not applicable to Windows 2000). In that UI click on "Set default programs", select the "VLC media player" item and check the description (it will usually say "All default settings for this program are active"). Then choose your own course of actions by either clicking on "Set this program as default" or "Choose default settings for this program".

Other ways to achieve the same effects are as follows (not really recommended).

Use Windows Explorer's context menu

  1. In Windows Explorer, right-click a file you wish to open.
  2. Click "Open With" in the context menu that pops up.
  3. Click "VLC media player" to use VLC just this once, or click "Default program..."
  4. Click the name of the program (VLC) which you want to be used to open the file.
    • If VLC is not displayed, click Browse to locate it on your hard drive.

Alternatively:

  1. In Windows Explorer, right-click the file you want to open with VLC.
  2. Click Properties in the context menu that pops up.
  3. On the General tab, click Change.
  4. Click the name of the program (VLC) which you want to be used to open the file.

Either of these options affects all files that have the same filename extension (the letters after the filename's period) as the file you selected. For example, if you change the program that opens goober.avi, then all .avi files will be opened with VLC.

Rerun the installer

  1. Reinstall VLC and choose the "associate files" option when it comes up. Please note that on Vista and newer systems this will not cure the 'Windows Media Player won't go away' symptom, and you should go the "Set default program" route instead, as described above.

Edit the registry

Warning: this instruction set is outdated and should not be used. Direct registry editing should be avoided anyway unless you're desperate and you really really know what you're doing.

Warning: use this technique only if you really know what you are doing! And be sure to back-up your registry first.

  1. Open a text editor, like Notepad (but not WordPad).
  2. Copy this text below.
  3. Modify the strings C:\\Program Files\\VideoLAN\\VLC\\vlc.exe to match your VLC installation.
  4. Save as vlc.reg.
  5. Execute vlc.reg (adding this data to your registry).
  6. Enjoy VLC :)

Text to copy:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.ASF]
@="VlcFile"

[HKEY_CLASSES_ROOT\.ASX]
@="VlcFile"

[HKEY_CLASSES_ROOT\.AVI]
@="VlcFile"

[HKEY_CLASSES_ROOT\.DIVX]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPEG]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPG]
@="VlcFile"

[HKEY_CLASSES_ROOT\.VOB]
@="VlcFile"

[HKEY_CLASSES_ROOT\.WMV]
@="VlcFile"

[HKEY_CLASSES_ROOT\VlcFile]
@="VLC File"

[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe,0"

[HKEY_CLASSES_ROOT\VlcFile\shell\Open]
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe \"%L\""

Note: This associates asf, asx, avi, divx, mpeg, mpg, vob and wmv files. If you get the idea, you can associate any file you want.

How To Start VLC Server with http Interface

VLC ships with a little HTTP server integrated. It is used both to stream using HTTP, and for the HTTP remote control interface.

Step 1: VLC Server Preferences Settings

  1. Set up the http interface details in the VLC server application: Open VLC, then select Tools > Preferences. In the bottom left corner of the window, under "Show settings", click "All".
  2. In the left-hand menu click on the + button next to Interface. This will display three choices: Control interfaces, Hotkeys settings, and Main Interfaces. Click "Main Interfaces". Select "HTTP remote control interface".
  3. Click on the plus button next to "Main interfaces". This will display four settings: HTTP, Qt, RC, and Skins. Click on HTTP to display the "HTTP remote control interface" settings.
  4. Host address: Address and port the HTTP will listen on, defaults to 0.0.0.0:8080. Set to 127.0.0.1 (a.k.a. localhost) if you want only the local machine.
  5. Source directory: If you have installed VLC in a different folder than the default, enter path\to\VLC\\http.
  6. If you are NOT using handlers or SSL certificates the setup is complete.
  7. Click on the Save button in the lower right hand of the window.
  8. If needed, edit the .hosts file in the vlc/http directory. By default only "localhost" is allowed, edit to enable other hosts.
  9. Exit and restart VLC

Step 2: Command Line Startup

The VLC application can be run in a server or client environment. For complicated video and audio streaming on a LAN, one should consider dedicating a machine to act as the VLC server.

To start the VLC application in a server mode with the http interface automatically set, use the following command line in your desktop shortcut. This assumes the default location for installation was selected.

% "C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf http --intf wx

Step 3: Testing the Interface

From another computer, connect to the VLC server computer using your browser to the URL

http://server_ip_address:8080, such as http://192.168.0.186:8080

The Main VLC Interface page will be displayed,

See Web Interface for additional information

VLC Plugin for Internet Explorer

This section will provide guidelines to incorporate the VLC ActiveX plugin to be used to view streaming audio and video from a VLC server.

  • How to embed the ActiveX Plugin in a Web Page: ActiveX/HTML
  • Supported ActiveX Function Calls: ActiveX

VLC Plugin for Firefox (Mozilla)

See also: Plugins/Mozilla

Install

There are at least two ways to install the VLC Mozilla Plugin. One way is to to check the "Install Firefox Plugin" when you install VLC.

If the standard exe installation does not install the mozilla plugin directory, then download zip version which includes the required data, and continue with the next installation (2nd way of installing of the plugin)

The second way involves several steps:

  1. Quit Firefox or Mozilla
  2. Copy the two files in VLC_Installation_folder\mozilla (usually C:\Program Files\VideoLAN\VLC\mozilla) to your mozilla plugins directory (Usually C:\Program Files\Mozilla\plugins or C:\Program Files\Mozilla Firefox\plugins).
  3. Restart Firefox or Mozilla

Use the Mozilla plugin

If in the browser you open a link to an audio or video URL handled by the VLC plugin, or if a web page has HTML code that embeds audio or video handled by the VLC plugin, then the plugin should start and play the audio/video. Note the plugin (as of version 1.1.9) does not present any user interface — it has no default control panel and no keyboard shortcuts.

To get the list of the media types handled by the VLC plugin, browse to about:plugins. Conflicts will arise if you have more than one plugin installed that supports the same media type.

See the Web plugin documentation to create HTML pages that use JavaScript to control the plugin.

More example code, as well as a working implementation using JavaScript, XHTML, and PHP that auto-detects browsers (the code is good, but the stream doesn't work) can be found at https://web.archive.org/web/20170830175009/http://altair.videolan.org:80/~dionoea/vlc-plugin-demo/

Portable VLC

A version of VLC in a portable format exists. It is useful, for example, if you want to put it on a USB stick and use it on computers you don't own. It can also be very useful on your own computer: if you have to reinstall Windows, you won't need to reinstall VLC, it will be up and running almost instantly:
http://portableapps.com/apps/music_video/vlc_portable

Related articles