<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>REDBLIND &#187; f4v</title>
	<atom:link href="http://redblind.com/blog/topic/f4v/feed/" rel="self" type="application/rss+xml" />
	<link>http://redblind.com/blog</link>
	<description>Blog of Jonathan Cipriano</description>
	<lastBuildDate>Mon, 27 Dec 2010 21:21:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DON&#8217;T GZIP F4V&#8217;S</title>
		<link>http://redblind.com/blog/2010/02/12/dont-gzip-f4vs/</link>
		<comments>http://redblind.com/blog/2010/02/12/dont-gzip-f4vs/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 20:29:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[f4v]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://redblind.com/blog/?p=307</guid>
		<description><![CDATA[SYMPTOMS
The other day we deployed a new site to the production servers only to find our video player was bugging out. Specifically in Firefox, it seemed that the file size and video length was not being interpreted correctly. Load complete events and video play complete events were being fired prematurely, if not instantaneously. It other [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SYMPTOMS</strong></p>
<p>The other day we deployed a new site to the production servers only to find our video player was bugging out. Specifically in Firefox, it seemed that the file size and video length was not being interpreted correctly. Load complete events and video play complete events were being fired prematurely, if not instantaneously. It other browsers the bytes loaded of the net stream never updated, but the video played fine. It worked perfectly in our dev environment and had passed QA, but for some reason broke when deployed to production. This lead us to believe that it was environmental and  differences between the server configurations were at fault.</p>
<p><strong>CAUSE</strong></p>
<p>I&#8217;ve seen this type of thing before and wrote about it <a title="flv mime-types" href="http://redblind.com/blog/2008/07/14/iis-flv-mime-type-pwns-you/">here</a>. Using an HTTP proxy (I use <a title="charles web debugging proxy" href="http://www.charlesproxy.com/" target="_blank">Charles</a>), I looked at the differences in responses to the F4V requests from the two servers. Both were returning a &#8220;plain-text&#8221; mime-type. Not a good thing, but still did not explain the differences in behavior. The only difference was the production server was using <a title="gzip compression" href="http://en.wikipedia.org/wiki/Gzip" target="_blank">gzip compression</a> for F4V files. I did a quick search on the web and found only two documented cases of malfunctioning F4Vs and gzip compression, so I figured it was worth writing about.</p>
<p><strong>SOLUTION</strong></p>
<p>The solution is to exclude F4Vs from gzip compression in your apache configuration. Unfortunately, we don&#8217;t have administration rights to out client&#8217;s servers, so we defaulted to the lower quality and slightly larger file size of FLV, which fixed the issue.</p>
<p><strong>REFERENCES</strong></p>
<ol>
<li><a href="http://www.longtailvideo.com/support/forum/Setup-Problems/21791/MP4-and-Firefox-3-5-7-#msg143431" target="_blank">http://www.longtailvideo.com/support/forum/Setup-Problems/21791/MP4-and-Firefox-3-5-7-#msg143431</a></li>
<li><a href="http://stackoverflow.com/questions/1100888/f4v-player-works-on-every-site-but-one" target="_blank">http://stackoverflow.com/questions/1100888/f4v-player-works-on-every-site-but-one</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://redblind.com/blog/2010/02/12/dont-gzip-f4vs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

