如何使IIS 7.5播放Flash视频 [英] How can I make IIS 7.5 play flash video

查看:75
本文介绍了如何使IIS 7.5播放Flash视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS 7.5内创建了一个应用程序,并在该应用程序内创建了一个虚拟目录.我将其中的Flash视频文件保留在本地(通过浏览器)播放.

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).

它在IIS 5.0中(在xp上)运行良好.但是,在IIS 7.5上,它无法运行,视频一开始就卡住了.

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.

当我双击Windows资源管理器中的html文件时,视频工作正常.

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是Windows Server 2008 R2

OS is windows server 2008 R2

谢谢

推荐答案

您需要确保IIS 7.5已设置为提供.swf和.flv扩展名以及所有其他需要添加的MIME类型.投放,即使是静态内容也是如此.否则,IIS将显示404,因为它不知道如何为它们提供服务.在您的网站中,选择"MIME类型",然后为.swf添加一个application/x-shockwave-flash,为.flv添加一个video/x-flv.

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 as video/x-flv.

您可能需要为.mp4添加一个,即video/mp4. IIS 7.5应该已经为.flv和.swf设置了一个,但是.mp4是一个常见的情况,但没有.

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.

这篇关于如何使IIS 7.5播放Flash视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆