title: Callback on percentage buffered using video.js
body: <p>How could I create a callback function on the event that a video (played with video.js) is (say) 50% buffered?</p>
  
  <p>There's the myPlayer.bufferedPercent() method, that I've been using as in the code below that seems to work, but a callback would clearly be much better.</p>
  
  <pre><code>function checkBuffered() {
      if (videoPlayer.bufferedPercent()*100 &gt; 50){
        clearTimeout(bufferedTimeout);
        $("bufferingText").hide();
        $("instructionsText").show();
        $('#feedback_keyPress').html(videoPlayer.bufferedPercent()*100);
      }
      bufferedTimeout = setTimeout(checkBuffered, 1000 / FPS);
    }
  </code></pre>
  
  <p>I borrowed a <a href="http://jsfiddle.net/bababalcksheep/0a5u3ew4/" rel="nofollow noreferrer">fiddle</a> that might help </p>