FlowPlayer and IIS 6

May 8, 2007 at 9:34 pm 8 comments

Today I was adding a Flash Video (a .FLV file) to a website and was having it play via FlowPlayer.  Worked great on my development machine.  I copied my changes over to the remote server and was disappointed to find different behavior.  The player just sat there idle without playing or displaying any metrics about the video.  I knew the FLV file was big, but was it really that big that I could go walk my dogs and it was still downloading?!?  That seemed pretty ridiculous, so I reflected for a second and suddenly I had a suspect.  IIS 6 MIME Types.

As part of its added security, IIS 6 will only serve up a specific set of extensions by default.  Anything not on that list, IIS 6 will act like the file does not exist, so the web browser will typically return a “The page cannot be found” error (Most commonly I have run across this behavior with downloading .ZIP files).  Because FlowPlayer was seeking the file behind the scenes, I was not getting the tell-tale 404 error in my browser.  But the cause was still the same– FLV was not a registered MIME Type in IIS 6, so web server simply ignored it.

Luckily, it is a very easy configuration within IIS 6 to support the .FLV files:

  1. On the server, get into the Computer Management Console (right click on My Computer and go to Manage or access through the Administrative Tools section of the Control Panel).
  2. Expand Services and Applications
  3. Right click on Internet Information Services and select Properties.
  4. Under the “MIME Types” section, click on the MIME Types… button
  5. Click on the New… button. 
  6. Fill in “.flv” for the extension and “video/x-flv” as the content type. 
  7. Save your changes.

I went ahead and restarted the IIS Services for good measure and from then on out FlowPlayer was a little more interesting to watch.  🙂

Entry filed under: Flash, FlowPlayer, IIS 6, Web Development.

Gatewood Lake and McDonald’s Falls Ridge

8 Comments Add your own

  • 1. Clint  |  May 9, 2007 at 8:46 am

    gah! Microsoft – making things harder as usual.

    Reply
  • 2. Galen Seaman  |  May 14, 2007 at 10:59 pm

    Thank you. I am having this exact problem.
    Galen

    Reply
  • 3. tgaw  |  May 15, 2007 at 9:14 am

    @Galen– Yay! Glad to help!

    Reply
  • 4. yohaas  |  May 25, 2007 at 8:51 am

    Thanks. Was having that exact issue. Worked perfectly 🙂

    Reply
  • 5. Patrick  |  August 29, 2007 at 9:15 am

    Tried to just STOP / START the server and it didn’t work.

    A command-line

    iisreset

    did the trick.
    Thx, good help.

    Reply
  • 6. Andrei  |  March 20, 2008 at 11:00 pm

    Thanks a lot for the post. I’ve been braking my head for a day trying to figure out why it didn’t play that flv. Good job.

    Reply
  • 7. emtiaz  |  May 14, 2008 at 8:06 pm

    Thanx bro… i had the problem and your post resolved it in the first attempt…

    Reply
  • 8. TGAW  |  May 14, 2008 at 9:01 pm

    @emtiaz – You’re welcome, “bro”.

    – Vicky

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Flickr Photos

3D Printed Products

Tweets


%d bloggers like this: