== 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.
I. Compiling
The ActiveX Control should compile without any glitches as long as you
have the latest version of mingw gcc and headers.
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 can use 'widl' which is part of
the WINE project (http://www.winehq.com). At leat wine-dev-0.9.57 works,
the comand line to compile IDL should looks like the following :
widl -I/usr/include/wine/windows/ \
-h -H axvlc_idl.h -t -T axvlc.tlb -u -U axvlc_idl.c axvlc.idl
NOTE: widl breaks compatibility with Visual Basic. If that is important
to you then you must use midl.
II. Debugging
The ActiveX control is compiled with verbose output by default, but you
will need to launch Internet Explorer from a Cygwin shell to see the
output. Alternatively, the plugin will also use the VLC preferences, so
if you enable the file logging interface through the player and save the
preferences, the control will automatically log its verbose output into
the designated file.
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, even if the local server crashes. 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, 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
III. 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 the
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 source build
tree. Otherwise, at best, the control will not play any content,
at worse it may crash Internet Explorer while attempting to load
incompatible plugins.
IV. 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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
VLC_3.0.3 SDK win32 (106个子文件)
libvlc_media_player.h 71KB
vlc_about.h 48KB
vlc_fourcc.h 34KB
vlc_threads.h 31KB
libvlc_media.h 28KB
vlc_common.h 28KB
vlc_es.h 22KB
vlc_input.h 22KB
vlc_variables.h 21KB
vlc_arrays.h 20KB
vlc_block.h 20KB
vlc_plugin.h 20KB
libvlc.h 19KB
vlc_demux.h 17KB
vlc_dialog.h 17KB
vlc_playlist.h 16KB
vlc_stream.h 16KB
vlc_input_item.h 16KB
vlc_vout_display.h 16KB
vlc_aout.h 15KB
vlc_filter.h 15KB
vlc_codec.h 14KB
deprecated.h 14KB
vlc_text_style.h 13KB
libvlc_vlm.h 12KB
vlc_tls.h 12KB
vlc_vlm.h 12KB
vlc_block_helper.h 12KB
vlc_vout_window.h 11KB
vlc_config_cat.h 10KB
vlc_sout.h 10KB
vlc_interface.h 10KB
vlc_keystore.h 10KB
vlc_network.h 9KB
vlc_configuration.h 9KB
vlc_fs.h 9KB
vlc_actions.h 9KB
vlc_subpicture.h 9KB
vlc_picture.h 9KB
vlc_charset.h 8KB
libvlc_dialog.h 8KB
libvlc_events.h 8KB
vlc_meta.h 8KB
vlc_interrupt.h 7KB
vlc_services_discovery.h 7KB
libvlc_renderer_discoverer.h 7KB
libvlc_media_list_player.h 7KB
vlc_atomic.h 7KB
vlc_url.h 7KB
vlc_es_out.h 7KB
vlc_picture_pool.h 6KB
vlc_events.h 6KB
vlc_bits.h 6KB
libvlc_media_list.h 6KB
vlc_renderer_discovery.h 6KB
vlc_addons.h 6KB
libvlc_media_discoverer.h 6KB
vlc_media_library.h 6KB
vlc_stream_extractor.h 6KB
vlc_httpd.h 6KB
vlc_vout.h 5KB
vlc_video_splitter.h 5KB
vlc_cpu.h 5KB
vlc_boxes.h 5KB
vlc_mouse.h 5KB
vlc_strings.h 5KB
vlc_config.h 4KB
vlc_mtime.h 4KB
vlc_epg.h 4KB
vlc_messages.h 4KB
vlc_modules.h 4KB
vlc_opengl.h 4KB
vlc_http.h 4KB
vlc_xml.h 3KB
vlc_timestamp_helper.h 3KB
vlc_vout_osd.h 3KB
vlc_image.h 3KB
vlc_spu.h 3KB
vlc_fingerprinter.h 3KB
vlc_objects.h 3KB
libvlc_media_library.h 3KB
vlc_picture_fifo.h 3KB
vlc_access.h 2KB
vlc_memstream.h 2KB
vlc_viewpoint.h 2KB
libvlc_version.h 2KB
vlc_xlib.h 2KB
vlc_probe.h 2KB
vlc_gcrypt.h 2KB
vlc.h 2KB
vlc_md5.h 2KB
vlc_inhibit.h 2KB
vlc_aout_volume.h 2KB
vlc_main.h 2KB
vlc_rand.h 1KB
vlc_meta_fetcher.h 1KB
vlc_avcodec.h 1KB
vlc_mime.h 1KB
test.html 28KB
libvlccore.lib 573KB
共 106 条
- 1
- 2
资源评论
- weixin_411522552019-01-07可惜没有libvlccore.dll和libvlc.dll这两个重要的文件
- ajccn2020-08-18还不错,下载用上了。
jiangfan_dq
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python实现的自动化办公项目.zip
- 基于python实现的基于PyQt5和爬虫的小说阅读系统.zip
- 机械设计整经机上纱自动化sw20非常好的设计图纸100%好用.zip
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功