title: Check if YouTube video is playing and run script
body: <p>I have the following video embeded within WordPress</p>
  
  <pre><code>&lt;iframe id="video" width="640" height="360" src="http://www.youtube.com/embed/xxxxxx?enablejsapi=1" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>And it's inside a SlideDeck slider, which I want to stop when someone clicks the video. I can't figure out how to get this line of code</p>
  
  <pre><code>self.pauseAutoPlay = true;
  </code></pre>
  
  <p>to run when the video is playing. </p>
  
  <p>I desperately need some help please.</p>
  
  <p><strong>Edit:</strong> As I'm not the end user. I need something that will work with the default embed code from YouTube.</p>