title: html5 video plays only once when streamed through a controller in chrome and doesnt play in ipad at all
body: <p>I've been trying to use the html5 video tag in my web page. I'm using chrome on desktop and safari on iPad.
  It works fine when in the source tag I provide the URL of the actual mp4 file but if I provide a URL of my controller/servlet, then
  - on chrome, video plays only once and after that you can't even use the seek bar or play the video again on clicking the play button
  - on safari in iPad, the video doesn't load at all</p>
  
  <p>In my controller, I'm setting the content-type as "video/mp4" and setting the content-length property too. Not sure why it isn't working.
  Everything works well on firefox and safari on desktop though.</p>
  
  <p>Any help would be highly appreciated. Thanks in anticipation.</p>
  
  <p>Here's the code:</p>
  
  <p>Working:</p>
  
  <pre><code>&lt;video controls="controls" width="700" height="390" class="myVideo"&gt;
            &lt;source src="http://example.com/fileName.mp4" type="video/mp4"/&gt;
            &lt;source src="http://example.com/fileName.ogv" type="video/ogg"/&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>Not Working:</p>
  
  <pre><code>&lt;video controls="controls" width="700" height="390" class="myVideo"&gt;
            &lt;source src="http://example.com/servletName?type=mp4" type="video/mp4"/&gt;
            &lt;source src="http://example.com/servletName?type=ogv" type="video/ogg"/&gt;
  &lt;/video&gt;
  </code></pre>