title: Why does setting currentTime of HTML5 video element reset time in Chrome?
body: <p>I want to set the time position of a video in HTML5. The time should be set like this:</p>
  
  <pre><code>function settime(){
      var video = document.getElementById("video1");
      console.log(video.currentTime); //-----&gt;output for example 15.3
      video.currentTime = 10.0;
      console.log(video.currentTime);//-----&gt;&gt;output always 0
  }
  </code></pre>
  
  <p>And the video is embedded like this:</p>
  
  <pre><code>&lt;button onclick="settime();"&gt;Set Time&lt;/button&gt;
  &lt;div class="container"&gt;
  &lt;video id="video1" class="video-js vjs-default-skin" muted&gt;
       &lt;source src="video.m4v" type="video/mp4" /&gt;
       HTML5 Video is required for this example.
  &lt;/video&gt;
  </code></pre>
  
  <p>But for some reason, this always just resets currentTime to 0 in Chrome.</p>
  
  <p>Why gets the time reset when setting currentTime? And how can I set currentTime correctly?</p>