1. for installation and use, refer:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2. In the VLC source code structure after 2.0.0 Projects "built on libvlc project, such as Mozilla plug-in, ActiveX plug-in" is reduced, the previous code can be here: http://download.videolan.org/videolan/vlc/
3. Todo: embed a webpage, preview the video device, and make some modifications.
4. To be supplemented...
Some control-related files:Axvlc. Def
LIBRARY AXVLC.DLLEXPORTS DllMain = DllMain@12 DllCanUnloadNow = DllCanUnloadNow@0 DllGetClassObject = DllGetClassObject@12 DllRegisterServer = DllRegisterServer@0 DllUnregisterServer = DllUnregisterServer@0
Axvlc. IDL Interface DESC language (Interface Description Language)
Axvlc_idl.c/axvlc_idl.h, which can be defined related to component interfaces
Simply recall the operation of COM components, [Customer program] [com Database: Find DLL in the registry] [component program: COM Object, class factory]: the customer program calls cocreateinstance and indirectly calls the cogetclassobject function; find and load the corresponding DLL from the com Library; call the dllgetclassobject function to create a class factory, and return the interface pointer to cogetclassobject and cocreateobject. After cocreateinstance obtains the class factory, you can create a COM object. The class factory creates a COM object and then returns it to the customer for direct calling.
Interaction between webpages and ActiveX Controls:
<param name="Autoplay" value="True" />
The implementation and call methods of the ipersistpropertybag interface of the property package.
Embedded ActiveX control in IE, created by IE. Ie uses shdocvw. DLL to search for a subitem of the ActiveX control instance named initpropertybag or initstream. If found, it will create an ipropertybag or istream based on the content of the registry key, and pass it to ipersistpropertybag: Load
Or ipersiststream: load method (correspondingly ).
In this way, ActiveX controls can easily achieve serialization and interaction with webpages.
It is precisely because IE and colecontrol support this interface by default, so when creating ActiveX controls, programmers can easily solve the problem of storing properties on webpages.