Monday, December 10, 2007

Flash Video Streaming and IIS

One problem that plagues Flash video development is when it simply won't work in production the way it does in development. In later articles, I'll go further into depth on getting it to work at all in Flash, but this article is for you if your .swf is properly streaming video locally, but hits a brick wall when you try and run it out on production.

The obvious thing to check is that you have your .swf and .flv files published to your Web server along with correct path(s) in your Flash file. So, if you truly think everything is in order and still can't get it working, open up IIS and read on.

From your IIS panel, Right+Click your Web site and select "Properties." Choose the "HTTP Headers" tab and look in the "MIME mapping" section for the "File Types" button.



From the "File Types" window you'll need to add a New Type, where you'll have two fields to enter. Carefully enter the following:

Associated extension = ".FLV"
Content type (MIME) = "flv-application/octet-stream"

Hit "OK" and your results will appear in the Registered file types window, like this:



Of course there are many reasons for Flash Video projects to fail, but I found this one particularly elusive, thus worth mentioning. Please feel free to post additional problems/solutions and I'll expand this tutorial further.

No comments: