title: How to auto pause JWplayer after 15sec of playing?
body: <p>I'm looking for javascript to auto-pause JWPlayer on my wordpress blog after 15sec of playing.
  I currently have content locker that pops after 15sec &amp; video starts to play automatically on page load, I basicaly need it to stop at the time of content locker poping.</p>
  
  <p>Maybe it is possible to pause video at the time of content locker poping up not after 15 sec. that might turn out not so synchronised?</p>
  
  <p>I came up with better code that executes WHEN content locker pops up (div "overlay_div"). But something still doesn't work.</p>
  
  <pre><code>if (document.getElementById("overlay_div")) {jwplayer().stop();}
  </code></pre>