Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make IIS 7.5 play flash video

Tags:

video

iis-7.5

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

like image 358
Samuel Avatar asked Dec 17 '22 20:12

Samuel


2 Answers

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.

like image 71
vcsjones Avatar answered Jan 22 '23 07:01

vcsjones


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.

like image 33
Durai Amuthan.H Avatar answered Jan 22 '23 06:01

Durai Amuthan.H