title: Seeking in HTML5 video with Chrome
body: <p>I'm having issues seeking in video's using Chrome.</p>
  
  <p>For some reason, no matter what I do, <code>video.seekable.end(0)</code> is always 0.</p>
  
  <p>When I call <code>video.currentTime = 5</code>, followed by <code>console.log(video.currentTime)</code>, I see it is always 0, which seems to reset the video.</p>
  
  <p>I've tried both MP4 and VP9-based webm formats, but both gave the same results.</p>
  
  <p>What's more annoying is that Firefox runs everything perfectly. Is there something special about Chrome that I should know about?</p>
  
  <p>Here's my code (which only works in Firefox):</p>
  
  <pre><code>      &lt;div class="myvideo"&gt;
          &lt;video width="500" height="300" id="video1" preload="auto"&gt;
            &lt;source src="data/video1.webm" type="video/webm"/&gt;
            Your browser does not support videos.
          &lt;/video&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>And here's the javascript:</p>
  
  <pre><code>var videoDiv = $(".myvideo").children().get(0)
  videoDiv.load();
    videoDiv.addEventListener("loadeddata", function(){
      console.log("loaded");
      console.log(videoDiv.seekable.end(0)); //Why is this always 0 in Chrome, but not Firefox?
      videoDiv.currentTime = 5;
      console.log(videoDiv.currentTime); //Why is this also always 0 in Chrome, but not Firefox?
    });
  </code></pre>
  
  <p>Note that simply calling <code>videoDiv.play()</code> does actually correctly play the video in both browsers.</p>
  
  <p>Also, after the movie file is fully loaded, the <code>videoDiv.buffered.end(0)</code> also gives correct values in both browsers.</p>