title: How to get current progress of a video of youtube api
body: <p>I(m using youtube player API and I want to put a listener on the video progress.</p>
  
  <p>What I have now is this:</p>
  
  <pre><code>this.interval = setInterval(function(){ console.log(window.player.getCurrentTime()); }, 1000);
  </code></pre>
  
  <p>But getCurrentTime isn't being recognized as a function, how can I access the progress of a video?</p>