title: getting current time of youtube videos while playing
body: <p>When i play a Youtube video like this:</p>
  
  <p><a href="https://www.youtube.com/tv?#/watch/video/control?v=d1-VK12FZhs&amp;resume&amp;t=0m4s" rel="nofollow noreferrer">https://www.youtube.com/tv?#/watch/video/control?v=d1-VK12FZhs&amp;resume&amp;t=0m4s</a></p>
  
  <p>i see the time playing and duration at bottom of video.</p>
  
  <p>i can know current time playing looking for this in the page:</p>
  
  <blockquote>
    <p>&lt; span class="ytp-time-current">0:11</p>
  </blockquote>
  
  <p>After a little time this info is hidden until i pass again the mouse pointer over the video. </p>
  
  <p>When the info is shown, i can get ytp-time-current value updated every second.
  When the info is hidden, this value is not updated.
  How to take the current time while the info is hidden?</p>
  
  <p>I use this inside a chrome extension with this code:</p>
  
  <pre><code>document.addEventListener("spfdone", process); 
  document.addEventListener("DOMContentLoaded", process); 
  
  function process(){ 
  stop(); 
  start(); 
  } 
  window.onbeforeunload = function () { 
  stop(); 
  }; 
  
  function start(){ 
  
  x2 = setInterval(function() { 
  
  // here is the place to use the solution i'm looking for
  
  },1000); 
  } 
  
  function stop(){ 
  }
  </code></pre>
  
  <p>Thanks in advance.</p>