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


IIS7环境下支持mp4视频随意拖动和预览,WIN2008以上 目前网络上只有IIS6就是2003服务器下的配置,现在雨过天晴工作室放出II7以上配置MP4拖动和预览功能!

如果有什么需要 请联系雨过天晴工作室 QQ 83064001



功能介绍:支持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管理器。
选择“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.


当前位置:站长啦网站目录 » 站长资讯 » 站长新闻 » 技术文档 » 文章详细