如何让 IIS 7.5 播放 flash 视频
我在 IIS 7.5 中创建了一个应用程序,并在该应用程序中创建了一个虚拟目录。我在其中保留了一个 Flash 视频文件以在本地播放(通过浏览器)。
它在 IIS 5.0(xp 上)中运行良好。但是,在 IIS 7.5 上,它无法运行,视频卡在开头。
当我从 Windows 资源管理器中双击 html 文件时,视频工作正常。
有什么想法我应该更改哪些设置或如何调试它?事件查看器不显示任何内容。我授予了视频文件夹的完全权限。
操作系统是windows server 2008 R2
谢谢
I created an application inside IIS 7.5 and inside that application a virtual directory is created. I have kept a flash video file in that to play locally (via browser).
It works fine in IIS 5.0 (on a xp). However, on IIS 7.5, it does not run, the video gets stuck in the beginning.
The video works fine when I double click on the html file from the windows explorer.
Any ideas what settings I should change or how to debug this? Event viewer does not show anything. I gave full permission to the video folder.
OS is windows server 2008 R2
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要确保 IIS 7.5 设置为提供 .swf 和 .flv 扩展名的 MIME 类型,以及任何其他需要提供服务的内容,甚至是静态内容。否则 IIS 将返回 404,因为它不知道如何为它们提供服务。在您的网站中,选择 MIME 类型,然后为 .swf 添加一个
application/x-shockwave-flash
和 .flv 作为video/x-flv
。编辑:您可能需要为 .mp4 添加一个,即
video/mp4
。 IIS 7.5 应该已经有 .flv 和 .swf 了,但 .mp4 是一种常见的情况,但没有。You need to make sure that IIS 7.5 is setup to serve the MIME types for the .swf and .flv extensions, as well as anything else that needs to be served, even for static content. Otherwise IIS will 404 because it doesn't know how to serve them. In your website, select MIME Types and add one for .swf as
application/x-shockwave-flash
and .flv asvideo/x-flv
.EDIT: You may need to add one for .mp4, which is
video/mp4
. IIS 7.5 should have ones for .flv and .swf already, but .mp4 is a common case where it does not.为了清楚地了解他人。
让我一步步说
1)选择要在 IIS 中配置的网站
2)右键单击选择属性
3)选择HTTP标头选项卡
4) 在MIME 映射部分下选择文件类型
5)选择新类型类型.flv 作为扩展名,video/x-flv 或 flv-application/octet-stream 作为 mime 类型,然后选择确定。
如果仍然没有变化则重新启动iis。
For Clear understanding of others.
Let me put it step by step
1)Choose the website to configure in IIS
2)Right click Choose Properties
3)Choose HTTP Headers Tab
4)Choose File Types under the MIME Map section
5)Choose New Type type .flv as the extension and video/x-flv or flv-application/octet-stream as the mime type and choose OK.
if still no change then restart iis.