Use of "VLC" VLC-plugin and code application

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.