title: Pause Vimeo universal embed when hidden using jQuery
body: <p>I have a Vimeo video (via universal embed iframe) hidden on my page. Clicking a link fades it in, and clicking outside of the video (lightbox-style) fades it out and hides it - but the video keeps playing. I read on <a href="http://vimeo.com/api/docs/player-js" rel="nofollow noreferrer">Vimeo's API</a> that you can use JSON objects to pause the video, but I don't understand what they're saying.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;img id="show_tide" class="vid" src"#"&gt;
  &lt;i&lt;iframe id="tide" class="vim" src="http://player.vimeo.com/video/1747304?portrait=0&amp;amp;color=ffffffapi=1" width="726" height="409" frameborder="0"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>$('#underlay').click(function() {
      //pause VISIBLE (there are multiple) Vimeo video via API
      $('.vim, #underlay').fadeOut(400);
  });
  </code></pre>