vlc/activex
Damien Fouilleul d453f42e30 Oops, I did it again !
Obviously, having a hard coded path for plugins is of no use to anyone
2005-07-21 08:22:37 +00:00
..
axvlc_idl.c src/libvlc.c,include/vlc/vlc.h, include/variables.h: added a new a API to libvlc called VLC_VariableType, this API allows to retrieve the type of a VLC variable. this API is very useful for binding with highlevel languages, such as javascript, VBScript, etc... which allow for weakly typed variables such as Javascript. in order to support the VLC_VariableType API, i've had to move the variable type definitions from variables.h to vlc/vlc.h 2005-05-11 16:56:46 +00:00
axvlc_idl.h src/libvlc.c,include/vlc/vlc.h, include/variables.h: added a new a API to libvlc called VLC_VariableType, this API allows to retrieve the type of a VLC variable. this API is very useful for binding with highlevel languages, such as javascript, VBScript, etc... which allow for weakly typed variables such as Javascript. in order to support the VLC_VariableType API, i've had to move the variable type definitions from variables.h to vlc/vlc.h 2005-05-11 16:56:46 +00:00
axvlc_rc.rc all: clean-up, bug fixes so that plugin is now working correctly with Visual Basic 6 (which I have tested) and hopefully should also work with .NET (which I havent't tested). 2005-06-27 11:41:16 +00:00
axvlc.def Initial version of ActiveX plugin for VLC 2005-01-19 17:14:16 +00:00
axvlc.idl Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
axvlc.inf.in - Automatic versioning info in ActiveX plugin (refs #181) 2005-07-14 15:18:50 +00:00
axvlc.tlb src/libvlc.c,include/vlc/vlc.h, include/variables.h: added a new a API to libvlc called VLC_VariableType, this API allows to retrieve the type of a VLC variable. this API is very useful for binding with highlevel languages, such as javascript, VBScript, etc... which allow for weakly typed variables such as Javascript. in order to support the VLC_VariableType API, i've had to move the variable type definitions from variables.h to vlc/vlc.h 2005-05-11 16:56:46 +00:00
connectioncontainer.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
connectioncontainer.h Improved compatibility 2005-07-19 17:41:16 +00:00
dataobject.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
dataobject.h Improved compatibility 2005-07-19 17:41:16 +00:00
inplace.bmp Remove bogus executable permissions 2005-02-15 13:55:08 +00:00
main.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
Makefile.am Improved compatibility 2005-07-19 17:41:16 +00:00
objectsafety.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
objectsafety.h Improved compatibility 2005-07-19 17:41:16 +00:00
olecontrol.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
olecontrol.h Improved compatibility 2005-07-19 17:41:16 +00:00
oleinplaceactiveobject.cpp Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
oleinplaceactiveobject.h Improved compatibility 2005-07-19 17:41:16 +00:00
oleinplaceobject.cpp Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
oleinplaceobject.h Improved compatibility 2005-07-19 17:41:16 +00:00
oleobject.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
oleobject.h Improved compatibility 2005-07-19 17:41:16 +00:00
persistpropbag.cpp Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
persistpropbag.h Improved compatibility 2005-07-19 17:41:16 +00:00
persiststorage.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
persiststorage.h Improved compatibility 2005-07-19 17:41:16 +00:00
persiststreaminit.cpp Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
persiststreaminit.h Improved compatibility 2005-07-19 17:41:16 +00:00
plugin.cpp Oops, I did it again ! 2005-07-21 08:22:37 +00:00
plugin.h Improved compatibility 2005-07-19 17:41:16 +00:00
provideclassinfo.cpp Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
provideclassinfo.h Improved compatibility 2005-07-19 17:41:16 +00:00
README.TXT - source cleanup 2005-04-18 11:35:18 +00:00
test.html lastest -> latest 2005-07-09 22:05:47 +00:00
utils.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
utils.h Improved compatibility 2005-07-19 17:41:16 +00:00
viewobject.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
viewobject.h Improved compatibility 2005-07-19 17:41:16 +00:00
vlc16x16.bmp all: clean-up, bug fixes so that plugin is now working correctly with Visual Basic 6 (which I have tested) and hopefully should also work with .NET (which I havent't tested). 2005-06-27 11:41:16 +00:00
vlccontrol.cpp Improved compatibility 2005-07-19 17:41:16 +00:00
vlccontrol.h Improved compatibility 2005-07-19 17:41:16 +00:00

== ACTIVEX Control for VLC ==

The VLC ActiveX Control has been primary designed to work with Internet Explorer.
however it may also work with Visual Basic and/or .NET
Please note, that this code does not rely upon Microsoft MFC/ATL code,
hence good compatibility is not guaranteed. 

== Compiling ==

The ActiveX Control should compile without any glitches as long as you have the latest
version of mingw gcc and headers. However, In order to script the ActiveX Control
on Internet Explorer, a type library is required.

This type library is usually generated from an IDL file using Microsoft MIDL compiler.
Therefore, for convenience I have checked in the output of the MIDL compiler in the
repository so that you will only need the MIDL compiler if you change axvlc.idl.
the generated files are as follow:

axvlc_idl.c
axvlc_idl.h
axvlc.tlb

To use the MIDL compiler on cygwin, you will need to set some environment variables
before configuring vlc. If you have a copy of 'Microsoft Visual C++ 6.0' installed,
the following settings are correct:

export PATH=$PATH:"/cygdrive/c/Program Files/Microsoft Visual Studio/COMMON/MSDev98/Bin":"/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/Bin"
export INCLUDE='C:\Program Files\Microsoft Visual Studio\VC98\Include'
export MIDL="midl"

if you are cross-compiling on Linux, you may be able to use 'widl' which is part of
the WINE project (http://www.winehq.com), however I have not tested it.

== Debugging ==

the ActiveX control is compiled with verbose output by default. However you will
need to launch Internet Explorer from a Cygwin shell to see the output.

Debugging the ActiveX control DLL with GNU GDB can be difficult. Fortunately,
the ActiveX control can also be compiled as an executable rather than a DLL.
In ActiveX terms, this is called a local server.
The advantage of a local server is that it will never crash its client,
i.e Internet Explorer, if itself is crashing.
The build system does not currently allow to create an executable version of
the ActiveX control, you will need to manually define the BUILD_LOCALSERVER
pre-processor variable and modify the Makefile to exclude the '-shared' option
at the linking stage. Once this is done, you just need to launch axvlc.exe to
have a working Activex control. Please note, that executable version of the
ActiveX control will override any settings required for the DLL version, which
will no longer work until you (re)register it as shown in the following section

== Local Install ==

The VLC NSIS installer will install the ActiveX Control without requiring any
further manual intervention, but for people who like to live on the edge, here
are the steps you need to perform once you have built the ActiveX Control.

The ActiveX control DLL file may be copied anywhere on the target machine,
but before you can use the control, you will need to register it with Windows
by using the REGSVR32 command, as per following example:

REGSVR32 C:\WINDOWS\AXVLC.DLL

if the control needs to use external VLC plugins (i.e other than built-in ones),
make sure that the plugin path is set in the registry as per following example:

[HKEY_LOCAL_MACHINE\Software\VideoLAN\VLC]
InstallDir="C:\Program Files\VideoLAN\VLC"

The InstallDir must be the parent directory of the 'plugins' directory.

WARNING: Both control and plugins must come from the same build source tree.
Otherwise, at best, the control will not play any content, at worse
it may crash Internet Explorer while attempting to load incompatible plugins.

== Internet Install ==

The activex control may be installed from a remote through Internet Installer if
it is packaged up in a CAB file. The following link explains how to achieve this

http://msdn.microsoft.com/workshop/components/activex/packaging.asp

For convenience, I have provided a sample axvlc.INF file, which assumes that the VLC
NSIS Installer has been packaged up a CAB file called AXVLC.CAB.

The ActiveX Control DLL file can also be distributed by itself if it has been
compiled with built-in VLC plugins; check developer information for more
information on built-in plugins.

regards,
    Damien Fouilleul <Damien dot Fouilleul at laposte dot net>