title: how to check if any youtube video is being played in li of ul tag then do some actions accordingly
body: <p>I have embeded videos inside li(s) of ul tag like </p>
  
  <pre><code>  &lt;ul class="slides"&gt;
          &lt;li&gt;
              &lt;iframe id="ctl00_SliderContent_rptSlider_ctl01_framevid" width="400" height="200" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" style="border: solid 4px #37474F" src="https://www.youtube.com/embed/umG3MsLrcOU"&gt;&lt;/iframe&gt;
              &lt;img src="images/kitchen_adventurer_cheesecake_brownie.jpg" /&gt;
              &lt;/li&gt;
              &lt;li&gt;
              &lt;img src="images/kitchen_adventurer_lemon.jpg" /&gt;
              &lt;/li&gt;
              &lt;li&gt;
              &lt;img src="images/kitchen_adventurer_donut.jpg" /&gt;
                &lt;iframe id="ctl00_SliderContent_rptSlider_ctl02_framevid" width="400" height="200" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" style="border: solid 4px #37474F" src="https://www.youtube.com/embed/umG3MsLrcOU"&gt;&lt;/iframe&gt;
              &lt;/li&gt;
              &lt;li&gt;
              &lt;img src="images/kitchen_adventurer_caramel.jpg" /&gt;
              &lt;/li&gt;
        &lt;/ul&gt;
  </code></pre>
  
  <p>I am trying to tweak the below jQuery code in order fetch the status of videos in different li of ul tag and then do actions accordingly. I am not able to do that.</p>
  
  <pre><code>          &lt;script type="text/javascript"&gt;
              var player;
               function onYouTubeIframeAPIReady() {
              player = new YT.Player('ctl00_SliderContent_rptSlider_ctl01_framevid', {
              events: {
             'onStateChange': onPlayerStateChange
              }
           });
         } 
          function PlayStop(playerStatus) {
          if (playerStatus == -1) {
            // unstarted 
          } else if (playerStatus == 0) {
           // ended
          } else if (playerStatus == 1) {
            // playing
        } else if (playerStatus == 2) {
           // paused
        } else if (playerStatus == 3) {
         // buffering
        } else if (playerStatus == 5) {
        // video cued
        }
      }
      function onPlayerStateChange(event) {
         PlayStop(event.data);
       }
      &lt;/script&gt;
  </code></pre>
  
  <p>Please help me!!!</p>