<?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=Webstorm</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=Webstorm"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Webstorm/"/>
	<updated>2026-11-04T20:10:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=ActiveX&amp;diff=3519</id>
		<title>ActiveX</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=ActiveX&amp;diff=3519"/>
		<updated>2006-02-18T17:49:43Z</updated>

		<summary type="html">&lt;p&gt;Webstorm: HTML code example&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;
==Samples==&lt;br /&gt;
*[[ActiveX/Delphi|Delphi Implementation]]&lt;br /&gt;
&lt;br /&gt;
==HTML code example==&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;
&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>Webstorm</name></author>
	</entry>
</feed>