== 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 |
+----------+---------+---------+--------------------
没有合适的资源?快使用搜索试试~ 我知道了~
解压即可使用的VLC.zip
共693个文件
dll:297个
mo:88个
png:87个
需积分: 5 0 下载量 120 浏览量
2024-03-05
10:37:18
上传
评论
收藏 38.55MB ZIP 举报
温馨提示
此安装包为VLC安装包,解压即可使用,可用于rtsp/tmp/hls/http/m3u8等的播放
资源推荐
资源详情
资源评论
收起资源包目录
解压即可使用的VLC.zip (693个子文件)
libvlccore.dll.a 413KB
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
mobile.css 2KB
plugins.dat 340KB
libqt4_plugin.dll 11.44MB
libavcodec_plugin.dll 8.83MB
libskins2_plugin.dll 2.19MB
libvlccore.dll 2.18MB
libgnutls_plugin.dll 1.9MB
liblibass_plugin.dll 1.8MB
libvorbis_plugin.dll 1.64MB
libtaglib_plugin.dll 1.47MB
libprojectm_plugin.dll 1.47MB
libsamplerate_plugin.dll 1.45MB
libzvbi_plugin.dll 1.33MB
libschroedinger_plugin.dll 1.26MB
libxml_plugin.dll 1.18MB
libmkv_plugin.dll 1.17MB
libx264_plugin.dll 1.16MB
libsid_plugin.dll 951KB
libcaca_plugin.dll 751KB
libstream_filter_dash_plugin.dll 708KB
libfreetype_plugin.dll 687KB
liblive555_plugin.dll 679KB
libmod_plugin.dll 474KB
libstream_out_rtp_plugin.dll 468KB
libstream_filter_httplive_plugin.dll 430KB
axvlc.dll 416KB
librtp_plugin.dll 413KB
libstream_out_raop_plugin.dll 411KB
libremoteosd_plugin.dll 409KB
libaccess_output_shout_plugin.dll 405KB
libgme_plugin.dll 402KB
libtheora_plugin.dll 378KB
libswscale_plugin.dll 371KB
libfaad_plugin.dll 364KB
npvlc.dll 304KB
liblua_plugin.dll 304KB
libopus_plugin.dll 304KB
libupnp_plugin.dll 282KB
libflac_plugin.dll 259KB
libfluidsynth_plugin.dll 257KB
libdvdnav_plugin.dll 253KB
libgoom_plugin.dll 229KB
libdshow_plugin.dll 215KB
libmp4_plugin.dll 194KB
libblend_plugin.dll 190KB
libdeinterlace_plugin.dll 184KB
libpng_plugin.dll 182KB
libdtstofloat32_plugin.dll 178KB
libatmo_plugin.dll 177KB
libdtv_plugin.dll 176KB
libdvdread_plugin.dll 175KB
libpostproc_plugin.dll 169KB
liblibmpeg2_plugin.dll 163KB
liblibbluray_plugin.dll 154KB
libspeex_plugin.dll 151KB
libtwolame_plugin.dll 151KB
libdvbsub_plugin.dll 151KB
libi420_rgb_sse2_plugin.dll 136KB
libmux_ts_plugin.dll 134KB
libmpgatofixed32_plugin.dll 132KB
libts_plugin.dll 132KB
libcdda_plugin.dll 128KB
libvlc.dll 109KB
libogg_plugin.dll 108KB
libspatializer_plugin.dll 105KB
libplaylist_plugin.dll 104KB
libkate_plugin.dll 101KB
libmpc_plugin.dll 94KB
libmux_ps_plugin.dll 93KB
libaccess_bd_plugin.dll 92KB
libavi_plugin.dll 90KB
libaccess_http_plugin.dll 90KB
libpacketizer_h264_plugin.dll 85KB
libsap_plugin.dll 84KB
libzip_plugin.dll 82KB
libaccess_mms_plugin.dll 78KB
libi420_rgb_mmx_plugin.dll 76KB
libasf_plugin.dll 72KB
libaccess_realrtsp_plugin.dll 71KB
libdirect3d_plugin.dll 69KB
liboldrc_plugin.dll 69KB
libstream_out_transcode_plugin.dll 69KB
libdirectx_plugin.dll 69KB
libglwin32_plugin.dll 68KB
liba52tofloat32_plugin.dll 67KB
libvisual_plugin.dll 64KB
libvod_rtsp_plugin.dll 58KB
libty_plugin.dll 56KB
libpanoramix_plugin.dll 56KB
libpacketizer_mpeg4audio_plugin.dll 56KB
libmux_mp4_plugin.dll 55KB
libi420_rgb_plugin.dll 55KB
共 693 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
blankccc
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- c51_2_2.c
- ASCII American Standard Code for Information Interchange
- 一个chm格式的 SQL 函数手册-SQL语言手册文档
- 计算当前月份的天数和剩余天数
- 基于ARM的指令调度和延迟分支
- 基于Vue和TypeScript的极简聊天应用设计源码 - HasChat
- 基于Vue2全家桶和Zcool数据的图片收集网站设计源码 - cool-picture
- 基于C和C++的二维绘制工具设计源码 - DrawPro
- Object.defineProperty 的 IE 补丁object-defineproperty-ie-master.zip
- 整卷预览.mhtml
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功