IIS7环境下支持mp4视频随意拖动和预览,WIN2008以上,边播放边下载

功能介绍:支持MP4视频任意拖动(即拖动进度到没有下载的部分直接可以播放),支持MP4视频边下载边播放

适用于服务windows系统 IIS7以及更高

1、下载IIS专用的DLL扩展模块。

iis7:http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Internet-Information-Services-IIS7-Version2

2、以IIS7为例,解压mod_h264_streaming.dll至服务器上的目录
   

当运行Windows 32位:
创建一个app_code文件夹,如果你不已经有一个,C:\ \ \ \ inetpub wwwroot。
复制mod-h264-streaming模块(mod_h264_streaming .dll)到这个目录(C:\  inetpub wwwroot app_code)。
当运行Windows 64位:
启用32位应用程序赢得64。见:IIS7运行32位和64位版本的ASP.NET在同一时间,在不同的工作进程。

复制mod-h264-streaming模块(mod_h264_streaming .dll)到(%windir% \\ Syswow64 \\ inetsrv)或(%windir% \ System32 \ inetsrv)根据您的Windows版本。

如果您的IIS配置了ISAPI的PHP环境,推荐把mod_h264_streaming.dll放在php5isapi.dll所在目录,如c:php;

打开IIS管理器。
选择“MIME类型”。
选择“添加”。
设置'文件扩展名'到'.mp4 '和' MIME类型'到'video/mp4 '。
点击“确定”。
选择“模块”。
选择“配置本机模块”。
选择“注册”。
设置“名称”到“modh264streaming”。
设置“路径”选择mod_h264_streaming.dll位于的路径。
点击“确定”。
再次单击“确定”。
选择处理映射。
选择“添加模块映射”。
设置“请求路径”到 '*.mp4'.。
设置“模块”到“modh264streaming”。
设置“名称”到“modh264streaming”。
点击“请求限制”。
将“映射”设置为“只在请求映射到文件”时才调用处理程序。
将“动词”设置为“所有动词”。
设置'访问'到'脚本'。(注意:验证为什么这是以前的'执行')。
点击“确定”。
再次单击“确定”。
该模块现在出现在“启用”处理程序映射。

设置好后记得重启下


以下是英文版翻译:

Download the H264-Streaming-Module for IIS 7.


Configuration IIS 7 (Windows Vista)


By default, IIS 7.0 is not installed on Windows Vista. You can install IIS by clicking Windows Features in Advanced Options under Programs in Control Panel.


When running Windows 32 bit:


Create an App_Code folder, if you don't already have one, in c:\\inetpub\\wwwroot.
Copy the Mod-H264-Streaming module (mod_h264_streaming.dll) into this directory (c:\\inetpub\\wwwroot\\app_code).
When running Windows 64 bit:


Enable 32 bit applications on win 64. See: IIS7 - Running 32-bit and 64-bit ASP.NET versions at the same time on different worker processes.
Copy the Mod-H264-Streaming module (mod_h264_streaming.dll) into either (%windir%\\syswow64\\inetsrv) or (%windir%\\system32\\inetsrv) depending on your windows version.
Open up IIS Manager.


Select 'MIME types'.
Select 'Add'.
Set 'File name extension' to '.mp4' and 'MIME type' to 'video/mp4'.
Click 'OK'.
Select 'Modules'.
Select 'Configure Native Modules'.
Select 'Register'.
Set 'Name' to 'ModH264Streaming'.
Set 'Path' to the path where the mod_h264_streaming.dll is located.
Click 'OK'.
Click 'OK' again.
Select Handler Mappings.
Select 'Add Module Mapping'.
Set 'Request Path' to '*.mp4'.
Set 'Module' to 'ModH264Streaming'.
Set 'Name' to 'ModH264Streaming'.
Click 'Request Restrictions'.
Set 'Mappings' to 'Invoke handler only if request is mapped to file'.
Set 'Verbs' to 'All verbs'.
Set 'Access' to 'Scripts'. (Note to self: verify why this was previously 'Execute').
Click 'OK'.
Click 'OK' again.
The module now appears under the 'Enabled' Handler Mappings.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

web16888

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值