title: YouTube Iframe API - OnStateChange suddenly not working
body: <p>Until around 6pm EST this code below would have worked fine, but now for some reason onStateChange is not firing.  I've tried on multiple browsers and have had friends check it.  See anything obviously wrong?</p>
  
  <pre><code>&lt;div id="video"&gt;
    &lt;div id="player_wrap"&gt;
      &lt;div id="player"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
     &lt;script&gt;
  
      var tag = document.createElement("script");
      tag.src = "http://www.youtube.com/iframe_api";
      var firstScriptTag = document.getElementsByTagName("script")[0];
      firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  
      function onYouTubeIframeAPIReady() {
      var player;
  
          player = new YT.Player("player", {
            width: 640,
            height: 400,
            videoId: "MbfsFR0s-_A",
            events: { 
              'onReady': onPlayerReady, 
              'onStateChange': onPlayerStateChange          
            }
          });
        }
  
  function onPlayerReady() {
  
  alert ("player ready"); 
  
  }
  
  
  function onPlayerStateChange(event) {
  
  alert ("something happened"); 
  
  }
  </code></pre>