How can I make IIS 7.5 play flash video

孤街醉人 提交于 2019-12-01 05:18:31

问题


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


回答1:


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.

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.




回答2:


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.



来源:https://stackoverflow.com/questions/4111384/how-can-i-make-iis-7-5-play-flash-video

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!