<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dev</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dev"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Dev/"/>
	<updated>2026-11-04T17:28:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=ActiveX&amp;diff=5175</id>
		<title>ActiveX</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=ActiveX&amp;diff=5175"/>
		<updated>2006-07-18T16:30:10Z</updated>

		<summary type="html">&lt;p&gt;Dev: /* Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[Windows]] build of VLC includes an (optionaly installed) &#039;&#039;&#039;ActiveX control&#039;&#039;&#039;.  The ActiveX control enables VLC to be embedded in web browsers and third-party applications.  &lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
NOTE TO EDITORS!&lt;br /&gt;
PLEASE LEAVE THE SYNTAX AS VB (6 or 98, not .net or 2005).  IF NEEDED, WE SHOULD CREATE A SEPERATE SECTION FOR EACH LANGUAGE/VARIANT AND LINK TO IT.  &lt;br /&gt;
--&amp;gt;&lt;br /&gt;
The ActiveX control includes the following properties:&lt;br /&gt;
{|&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;name&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;type&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;get or set&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;description&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Length&lt;br /&gt;
|Integer&lt;br /&gt;
|get&lt;br /&gt;
|Returns length of the current clip.&lt;br /&gt;
|-&lt;br /&gt;
|playlistCount&lt;br /&gt;
|&lt;br /&gt;
|get&lt;br /&gt;
|Returns the count of items in the playlist&lt;br /&gt;
|-&lt;br /&gt;
|playlistIndex&lt;br /&gt;
|&lt;br /&gt;
|get&lt;br /&gt;
|Returns the index of the current item in the playlist.  &lt;br /&gt;
|-&lt;br /&gt;
|AutoLoop&lt;br /&gt;
|Boolean&lt;br /&gt;
|get/set&lt;br /&gt;
|Determines if the player should automatically loop when it finishes the current playlist.  &lt;br /&gt;
|-&lt;br /&gt;
|AutoPlay&lt;br /&gt;
|Boolean&lt;br /&gt;
|get/set&lt;br /&gt;
|Determines if the player should start playing a new file/playlist immediately upon being loaded.  &lt;br /&gt;
|-&lt;br /&gt;
|Volume&lt;br /&gt;
|Integer&lt;br /&gt;
|get/set&lt;br /&gt;
|Current volume (scaled from 0 to 100)&lt;br /&gt;
|-&lt;br /&gt;
|MRL&lt;br /&gt;
|String&lt;br /&gt;
|get/set&lt;br /&gt;
|Presumably returns the MRL of the currently loaded file.&amp;lt;!-- readme says &amp;quot;initial MRL in playlist&amp;quot; --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Time&lt;br /&gt;
|Integer&lt;br /&gt;
|get/set&lt;br /&gt;
|Time elapsed in seconds playing current MRL, 0 for live feed\&lt;br /&gt;
|-&lt;br /&gt;
|showdisplay&lt;br /&gt;
|Boolean&lt;br /&gt;
|get/set&lt;br /&gt;
|show/hide control viewport&amp;lt;!-- from readme --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Playing&lt;br /&gt;
|Boolean&lt;br /&gt;
|get&lt;br /&gt;
|Returns whether some MRL is playing&amp;lt;!-- from readme --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Position&lt;br /&gt;
|&#039;real&#039;&lt;br /&gt;
|get/set&lt;br /&gt;
|Playback position within current MRL, scaled from 0.0 to 1.0.  Live feed returns 0.0&lt;br /&gt;
|-&lt;br /&gt;
|VersionInfo&lt;br /&gt;
|String&lt;br /&gt;
|get&lt;br /&gt;
|Returns version and build information.&lt;br /&gt;
|}&lt;br /&gt;
Note:  In Visual Basic, type &amp;quot;Long&amp;quot; should be used for properties listed with type &amp;quot;Integer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
The ActiveX control includes the following methods (functions):&lt;br /&gt;
{|&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;name&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;type&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;description&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;syntax ([[wikipedia:Visual Basic|VB]])&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|setVariable&lt;br /&gt;
|method&lt;br /&gt;
|Assigns a value to a variable that is defined in libvlc.c&lt;br /&gt;
|controlname.setVariable name as String, value&lt;br /&gt;
|-&lt;br /&gt;
|getVariable&lt;br /&gt;
|method&lt;br /&gt;
|Returns the contents of a variable that is defined in libvlc.c&lt;br /&gt;
|x = controlname.getVariable(name as String)&lt;br /&gt;
|-&lt;br /&gt;
|pause&lt;br /&gt;
|method&lt;br /&gt;
|Pauses the currently playing clip&lt;br /&gt;
|controlname.pause&lt;br /&gt;
|-&lt;br /&gt;
|play&lt;br /&gt;
|method&lt;br /&gt;
|Plays as in the normal player, if a clip is not loaded, does nothing.&lt;br /&gt;
|controlname.play&lt;br /&gt;
|-&lt;br /&gt;
|playFaster&lt;br /&gt;
|method&lt;br /&gt;
|Makes the currently playing clip play faster.&lt;br /&gt;
|controlname.playFaster&lt;br /&gt;
|-&lt;br /&gt;
|playSlower&lt;br /&gt;
|method&lt;br /&gt;
|Makes the currently playing clip play slower.&lt;br /&gt;
|controlname.playSlower&lt;br /&gt;
|-&lt;br /&gt;
|stop&lt;br /&gt;
|method&lt;br /&gt;
|Makes the currently playing clip stop.&lt;br /&gt;
|controlname.stop&lt;br /&gt;
|-&lt;br /&gt;
|shuttle&lt;br /&gt;
|method&lt;br /&gt;
|Moves the playback position a specified number of seconds in either direction.&lt;br /&gt;
|controlname.shuttle(seconds as Long)&lt;br /&gt;
|-&lt;br /&gt;
|playlistClear&lt;br /&gt;
|method&lt;br /&gt;
|Clears the playlist&lt;br /&gt;
|controlname.playlistClear&lt;br /&gt;
|-&lt;br /&gt;
|playlistNext&lt;br /&gt;
|method&lt;br /&gt;
|Goes to next item in the playlist&lt;br /&gt;
|controlname.playlistNext&lt;br /&gt;
|-&lt;br /&gt;
|playlistPrev&lt;br /&gt;
|method&lt;br /&gt;
|Goes to previous item in the playlist&lt;br /&gt;
|controlname.playlistPrev&lt;br /&gt;
|-&lt;br /&gt;
|addTarget&lt;br /&gt;
|method&lt;br /&gt;
|Adds a uri to the current playlist or replaces the current playlist with the uri.  &lt;br /&gt;
|controlname.addTarget(uri as String, options, mode as [[VLCPlaylistMode]], Position as Long)&lt;br /&gt;
|-&lt;br /&gt;
|toggleMute&lt;br /&gt;
|method&lt;br /&gt;
|Toggles between the muted/unmuted state of the embedded player.&lt;br /&gt;
|controlname.toggleMute&lt;br /&gt;
|-&lt;br /&gt;
|fullscreen&lt;br /&gt;
|method&lt;br /&gt;
|Toggles between fullscreen and non-fullscreen modes.&lt;br /&gt;
|controlname.fullscreen&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
The &amp;lt;code&amp;gt;addTarget&amp;lt;/code&amp;gt; method accept the following options :&lt;br /&gt;
*&amp;lt;code&amp;gt;:audio-track=&#039;&#039;index&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;:vout-filter=&#039;&#039;output-filter&#039;&#039;&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;deinterlace&amp;lt;/code&amp;gt; for example)&lt;br /&gt;
*&amp;lt;code&amp;gt;:deinterlace-mode=&#039;&#039;mode&#039;&#039;&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;linear&amp;lt;/code&amp;gt; for example)&lt;br /&gt;
&lt;br /&gt;
==Samples==&lt;br /&gt;
*[[ActiveX/Delphi|Delphi Implementation]]&lt;br /&gt;
&lt;br /&gt;
* [[ActiveX/HTML|HTML Implementation]]&lt;br /&gt;
&lt;br /&gt;
==Installing==&lt;br /&gt;
The ActiveX control can be installed as an option when using the Windows installer, it is also included in the Windows zip file.  &lt;br /&gt;
Also note that the ActiveX control can be automatically installed using the http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab file. This can be useful if you want to embed the ActiveX control in a web page.&lt;br /&gt;
==See Also==&lt;br /&gt;
*[http://trac.videolan.org/vlc/file/trunk/activex/README.TXT Official ReadMe]&lt;/div&gt;</summary>
		<author><name>Dev</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=ActiveX/HTML&amp;diff=5174</id>
		<title>ActiveX/HTML</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=ActiveX/HTML&amp;diff=5174"/>
		<updated>2006-07-18T16:26:22Z</updated>

		<summary type="html">&lt;p&gt;Dev: /* Known Problems and how to solve them */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Embedding Activex using Javascript==&lt;br /&gt;
&lt;br /&gt;
You can insert the [[ActiveX]] control in your HTML pages like this :&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;OBJECT classid=&amp;quot;clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8&amp;quot;&lt;br /&gt;
     codebase=&amp;quot;http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab&amp;quot;&lt;br /&gt;
        width=&amp;quot;640&amp;quot; height=&amp;quot;480&amp;quot; id=&amp;quot;vlc&amp;quot; events=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;param name=&amp;quot;Src&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;param name=&amp;quot;ShowDisplay&amp;quot; value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;param name=&amp;quot;AutoLoop&amp;quot; value=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;param name=&amp;quot;AutoPlay&amp;quot; value=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/OBJECT&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, using Javascript, you can select another source, or change the audio track :&lt;br /&gt;
&lt;br /&gt;
  document.vlc.playlistClear();&lt;br /&gt;
  var options=[&amp;quot;:audio-track=5&amp;quot;]; // select audio track 5 (=6th, 1st is 0)&lt;br /&gt;
  document.vlc.addTarget(&amp;quot;...&amp;quot;,options,2,0); // replace entry 0&lt;br /&gt;
  document.vlc.play();&lt;br /&gt;
&lt;br /&gt;
==Embedding ActiveX using m3u Playlists==&lt;br /&gt;
Maybe a better to show VLC in an HTML Website is to use m3u Playlists. It has got the advantage that users with turned-off Javascript can also use this plugin, since document.vlc.addTarget won&#039;t work with javascript turned off.&lt;br /&gt;
&lt;br /&gt;
* Step 1: Create the HTML website with the VLC-Object linked to the m3u playlist&lt;br /&gt;
* Step 2: Create your m3u playlist with all options, save and upload it to your webspace.&lt;br /&gt;
* Step 3 (optional): Create buttons and other objects to control VLC (like document.vlc.play();)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1: Creating the website to embed ActiveX Control&#039;&#039;&#039;&lt;br /&gt;
 &amp;lt;!DOCTYPE HTML PUBLIC &amp;quot;-//W3C//DTD HTML 4.01 Frameset//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/frameset.dtd&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;HTML&amp;gt;&lt;br /&gt;
   &amp;lt;BODY marginwidth=&amp;quot;0&amp;quot; marginheight=&amp;quot;0&amp;quot; topmargin=&amp;quot;0&amp;quot; leftmargin=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;OBJECT classid=&amp;quot;clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8&amp;quot;&lt;br /&gt;
         codebase=&amp;quot;http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab&amp;quot;&lt;br /&gt;
         width=&amp;quot;400&amp;quot; height=&amp;quot;300&amp;quot; id=&amp;quot;vlc&amp;quot; events=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;param name=&amp;quot;Src&amp;quot; value=&amp;quot;myplaylist.m3u&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;param name=&amp;quot;ShowDisplay&amp;quot; value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;param name=&amp;quot;AutoLoop&amp;quot; value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;param name=&amp;quot;AutoPlay&amp;quot; value=&amp;quot;True&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;param name=&amp;quot;Volume&amp;quot; value=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;/OBJECT&amp;gt;&lt;br /&gt;
   &amp;lt;/BODY&amp;gt;&lt;br /&gt;
 &amp;lt;/HTML&amp;gt;&lt;br /&gt;
You should modify the values of width, height and volume (0-100) fitting to your desires. If you don&#039;t know them, simply delete them (e.g. remove &#039;&#039;width=&amp;quot;640&amp;quot;&#039;&#039; from the code).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2: Creating the m3u playlist&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Open Notepad, create your playlist and save it as &#039;myplaylist.m3u&#039; for this example.&lt;br /&gt;
 #EXTM3U                                     // Required to identify this file as m3u file&lt;br /&gt;
 #EXTVLCOPT--input-repeat=-1                 // repeat the following file/playlist&lt;br /&gt;
 #EXTVLCOPT--http-reconnect=true             // required for a streaming-client to enable repeat&lt;br /&gt;
 #EXTVLCOPT--any further parameter goes here // see also [[VLC command-line help]]&lt;br /&gt;
 #EXTINF:0, Test Description                 // set the title for the following file shown in your playlist&lt;br /&gt;
 video.mpg                                // the actual file to be displayed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Annotations:&#039;&#039;&#039;&lt;br /&gt;
* For actual looping of the entire playlist, the user has to have check &#039;Repeat all&#039; under Preferences --&amp;gt; Playlist --&amp;gt; General&lt;br /&gt;
* Mind that options have different names if you play a file locally or if you want to stream it (--sub-filter --&amp;gt; --s-filter)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Mind the different Options-styles:&#039;&#039;&#039;&lt;br /&gt;
  --option  A global option that is set for the duration of the program.&lt;br /&gt;
   -option  A single letter version of a global --option.&lt;br /&gt;
   :option  An option that only applies to the playlistitem directly before it&lt;br /&gt;
            and that overrides previous settings.&lt;br /&gt;
&lt;br /&gt;
==Known Problems and how to solve them==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A know problem is, that the VLC-Plugin won&#039;t be displayed. Instead, you are ask whether you want to install the VLC-ActiveX-Component. &amp;quot;Don&#039;t install&amp;quot; cancels the installation and nothing happens. &amp;quot;Install&amp;quot; runs the usual VLC-Setup (mind to install the ActiveX-Plugin), but after reopening an HTML-page with the VLC-Plugin, it&#039;s the same situation as before.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You have to lower the security settings on your PC. &#039;&#039;&#039;Do this at your own risk! Use [http://www.getfirefox.com Firefox] to browse the web!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In Internet Explorer select [Tools], [Internet Options]. The &amp;quot;Internet Options&amp;quot; window opens. Select the Tab &amp;quot;Advanced&amp;quot;. Scroll down until you see the main point &amp;quot;Security&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Check the following entries:&lt;br /&gt;
* Allow active content to CDs to run on My Computer&lt;br /&gt;
* Allow active content to run in files on My Computer&lt;br /&gt;
* Allow software to run or install even if the signature is invalid&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 2&#039;&#039;&#039;&lt;br /&gt;
Instead of lowering security level, you can add the website address to the right security area.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[ActiveX/Delphi|Delphi Implementation]]&lt;br /&gt;
&lt;br /&gt;
* [[ActiveX|ActiveX Description]]&lt;/div&gt;</summary>
		<author><name>Dev</name></author>
	</entry>
</feed>