== 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.
V. Controlling the plugin
1) Properties
The following public properties can be used to control the plugin
from HTML, the property panel of Visual Basic and most ActiveX aware
applications.
+==========+=========+===================================+===============+
| Name: | Type: | Description: | Alias: |
+==========+=========+===================================+===============+
| autoplay | boolean | play when control is activated | autostart |
+----------+---------+-----------------------------------+---------------+
| autoloop | boolean | loop the playlist | loop |
+----------+---------+-----------------------------------+---------------+
| mrl | string | initial MRL in playlist | src, filename |
+----------+---------+-----------------------------------+---------------+
| mute | boolean | mute audio volume | |
+----------+---------+-----------------------------------+---------------+
| visible | boolean | show/hide control viewport | showdisplay |
+----------+---------+-----------------------------------+---------------+
| volume | integer | set/get audio volume | |
+----------+---------+-----------------------------------+---------------+
| toolbar | boolean | set/get visibility of the toolbar | |
+----------+---------+-----------------------------------+---------------+
The alias column shows an alternative <PARAM name> for the property in
internet explorer, which is useful to maintain compatibility with HTML
pages already leveraging Windows Media Player
2) Programming APIs
The MRL, Autoplay and Autoloop properties are only used to configure the
initial state of the ActiveX control,i.e before its activation; they are
ignored afterward. Therefore, if some runtime control is required, the
following APIs should be used within your programming environment:
Variables:
+==========+=========+=========+=======================================+
| Name: | Type: | Access: | Description: |
+==========+=========+=========+=======================================+
| Playing | boolean | RO | Returns whether some MRL is playing |
+----------+---------+---------+---------------------------------------+
| Time | integer | RW | Time elapsed in seconds playing |
| | | | current MRL |
| | | | NOTE: live feeds returns 0 |
+----------+---------+---------+---------------------------------------+
| Position | real | RW | Playback position within current MRL |
| | | | in a scale from 0.0 to 1.0 |
| | | | NOTE: live feeds returns 0.0 |
+----------+---------+---------+---------------------------------------+
| Length | integer | RO | Total length in seconds of current MRL|
| | | | NOTE: live feeds returns 0 |
+----------+---------+---------+---------------------------------------+
| Volume | integer | RW | Current volume from 0 to 100 |
+----------+---------+---------+---------------------------------------+
| Visible | boolean | RW | Indicates whether control is visible |
+----------+---------+---------+--------------------
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
申明: 1、本软件是在VLC开源代码的基础上进行的修改,所有与VLC的相关权利和责任属于VLC的开发者! 2、本软件可供免费学习和使用,严禁对本软件进行破解和用于商业用途,否则将依法将进行责任追究。 使用: 1、打开本软件、加载视频 2、点击菜单 “工具”-“效果及过滤器”—“视频效果”—“Colors”—“斜度”—“边缘” 华大戴博士 Email: D.S.K@hqu.edu.cn QQ:715160622 通信地址:厦门市集美区集美大道668号,华侨大学,信息科学与工程学院
资源推荐
资源详情
资源评论
收起资源包目录
视频去雾处理VLC播放器绿色演示版 (679个子文件)
libvlccore.dll.a 407KB
libvlc.dll.a 162KB
browse 2KB
skin.catalog 167B
default.cfg 1KB
jquery-ui-1.8.13.custom.css 32KB
style.css 5KB
main.css 3KB
libqt4_plugin.dll 11.08MB
libavcodec_plugin.dll 8.78MB
libvlccore.dll 2.17MB
libskins2_plugin.dll 2.16MB
libgnutls_plugin.dll 1.93MB
liblibass_plugin.dll 1.8MB
libvorbis_plugin.dll 1.64MB
libsamplerate_plugin.dll 1.45MB
libprojectm_plugin.dll 1.39MB
libzvbi_plugin.dll 1.33MB
libtaglib_plugin.dll 1.24MB
libschroedinger_plugin.dll 1.19MB
libxml_plugin.dll 1.18MB
libmkv_plugin.dll 1.16MB
libx264_plugin.dll 1.04MB
libsid_plugin.dll 947KB
libcaca_plugin.dll 749KB
libstream_filter_dash_plugin.dll 711KB
libfreetype_plugin.dll 688KB
liblive555_plugin.dll 651KB
libmod_plugin.dll 472KB
libstream_out_rtp_plugin.dll 466KB
libaccess_output_shout_plugin.dll 412KB
librtp_plugin.dll 411KB
libstream_out_raop_plugin.dll 409KB
libremoteosd_plugin.dll 407KB
libgme_plugin.dll 400KB
libtheora_plugin.dll 378KB
libfaad_plugin.dll 360KB
libswscale_plugin.dll 347KB
axvlc.dll 313KB
liblua_plugin.dll 293KB
libupnp_plugin.dll 276KB
libflac_plugin.dll 261KB
libfluidsynth_plugin.dll 255KB
libdvdnav_plugin.dll 250KB
libgoom_plugin.dll 227KB
liblibbluray_plugin.dll 225KB
libdshow_plugin.dll 213KB
libmp4_plugin.dll 194KB
libpng_plugin.dll 178KB
libdtstofloat32_plugin.dll 176KB
libatmo_plugin.dll 175KB
libdvdread_plugin.dll 173KB
npvlc.dll 169KB
liblibmpeg2_plugin.dll 161KB
libdtv_plugin.dll 158KB
libspeex_plugin.dll 158KB
libtwolame_plugin.dll 149KB
libdvbsub_plugin.dll 149KB
libi420_rgb_sse2_plugin.dll 134KB
libts_plugin.dll 130KB
libmpgatofixed32_plugin.dll 130KB
libmux_ts_plugin.dll 127KB
libcdda_plugin.dll 126KB
libdeinterlace_plugin.dll 113KB
libvlc.dll 105KB
libspatializer_plugin.dll 103KB
libplaylist_plugin.dll 102KB
libogg_plugin.dll 98KB
libkate_plugin.dll 94KB
libmpc_plugin.dll 91KB
libmux_ps_plugin.dll 91KB
libaccess_bd_plugin.dll 89KB
libaccess_http_plugin.dll 88KB
libavi_plugin.dll 88KB
libpacketizer_h264_plugin.dll 83KB
libsap_plugin.dll 82KB
libpostproc_plugin.dll 82KB
libzip_plugin.dll 80KB
libaccess_mms_plugin.dll 75KB
libi420_rgb_mmx_plugin.dll 74KB
libstream_filter_httplive_plugin.dll 73KB
libasf_plugin.dll 70KB
libaccess_realrtsp_plugin.dll 69KB
liboldrc_plugin.dll 68KB
libdirectx_plugin.dll 67KB
libdirect3d_plugin.dll 66KB
libstream_out_transcode_plugin.dll 66KB
liba52tofloat32_plugin.dll 66KB
libglwin32_plugin.dll 65KB
libvisual_plugin.dll 62KB
libblend_plugin.dll 59KB
libvod_rtsp_plugin.dll 56KB
libpacketizer_mpeg4audio_plugin.dll 55KB
libty_plugin.dll 54KB
libpanoramix_plugin.dll 54KB
libmux_mp4_plugin.dll 53KB
libaudiobargraph_v_plugin.dll 53KB
libi420_rgb_plugin.dll 53KB
libwingdi_plugin.dll 53KB
libdirect2d_plugin.dll 53KB
共 679 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
d_s_k
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页