title: Servlet streaming mp4 for html5 video in chrome
body: <p>i'm trying to stream a movie (mp4 or ogv based upon browser) from a Java servlet to be used in a HTML5 webpage. After doing some research here, i found out that i need to support ranges. In most of the examples there is a reference to <a href="http://balusc.blogspot.be/2009/02/fileservlet-supporting-resume-and.html" rel="noreferrer">http://balusc.blogspot.be/2009/02/fileservlet-supporting-resume-and.html</a>. This seems to work as it should for IE and Firefox except for some socket write errors that get thrown, but the movie plays in these 2 browsers.</p>
  
  <p>In Chrome however, the movie starts off fine, but most of the times it simply goes blank when it's mp4 or just freezes when it's ogv after playing for a while. I'm not getting any errors tho.</p>
  
  <p>I'm using the source code from <a href="http://balusc.blogspot.be/2009/02/fileservlet-supporting-resume-and.html" rel="noreferrer" title="Balusc">Balusc</a> for my servlet. The only thing I added was logic to determine a subfolder based upon the file requested, but this was allready happening before i added my own stuff.</p>
  
  <p>Help will be greatly appreciated, cause it is driving me crazy that it sometimes works and sometimes doesn't without any clear reason.</p>
  
  <p>Thanks,
  Andy</p>