Search code examples
videoiis-7.5

How can I make IIS 7.5 play flash video


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


Solution

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