Difference between revisions of "ActiveX"

From VideoLAN Wiki
Jump to navigation Jump to search
(Work in progress, but moving along well)
 
(adding more)
Line 1: Line 1:
 
The [[Windows]] build of VLC includes an (optionaly installed) '''ActiveX control'''.  The ActiveX control enables VLC to be embedded in web browsers and third-party applications.   
 
The [[Windows]] build of VLC includes an (optionaly installed) '''ActiveX control'''.  The ActiveX control enables VLC to be embedded in web browsers and third-party applications.   
 +
  
 
The ActiveX control includes the following properties and methods (functions):
 
The ActiveX control includes the following properties and methods (functions):
Line 25: Line 26:
 
|Returns the contents of a variable that is defined in libvlc.c
 
|Returns the contents of a variable that is defined in libvlc.c
 
|x = controlname.getVariable(name as String)
 
|x = controlname.getVariable(name as String)
 +
|-
 +
|pause
 +
|method
 +
|Pauses the currently playing clip
 +
|controlname.pause
 +
|-
 +
|play
 +
|method
 +
|Plays as in the normal player, if a clip is not loaded, does nothing.
 +
|controlname.play
 +
|-
 +
|playFaster
 +
|method
 +
|Makes the currently playing clip play faster.
 +
|controlname.playFaster
 +
|-
 +
|playSlower
 +
|method
 +
|Makes the currently playing clip play slower.
 +
|controlname.playSlower
 +
|-
 +
|playlistClear
 +
|method
 +
|Clears the playlist
 +
|controlname.playlistClear
 +
|-
 +
|
 
|}
 
|}

Revision as of 23:29, 16 January 2006

The Windows build of VLC includes an (optionaly installed) ActiveX control. The ActiveX control enables VLC to be embedded in web browsers and third-party applications.


The ActiveX control includes the following properties and methods (functions):

name type description syntax (VB)
length property (get only) Returns length of the current clip.
position property (get and set) Return or set the playback position on the current clip.
setVariable method Assigns a value to a variable that is defined in libvlc.c controlname.setVariable name as String, value
getVariable method Returns the contents of a variable that is defined in libvlc.c x = controlname.getVariable(name as String)
pause method Pauses the currently playing clip controlname.pause
play method Plays as in the normal player, if a clip is not loaded, does nothing. controlname.play
playFaster method Makes the currently playing clip play faster. controlname.playFaster
playSlower method Makes the currently playing clip play slower. controlname.playSlower
playlistClear method Clears the playlist controlname.playlistClear