title: YouTube API Issue
body: <p>I am trying to do something when the user clicks "play" on a YouTube video by using YouTube's API:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
        var player;
        function onYouTubePlayerAPIReady() {
          player = new YT.Player('player', {
            events: {
              'onReady': onPlayerReady,
              'onStateChange': onPlayerStateChange
            }
          });
        }
        function onPlayerReady(event) {
          event.target.playVideo();
        }
        function onPlayerStateChange(event) {
          alert('not cool')
          if (event.data == YT.PlayerState.PLAYING) {
            alert('cool');
          }
        }
  &lt;/script&gt;
  
  &lt;iframe id="player" width="970" height="582" src="http://www.youtube.com/embed/6oE-NlWHVuQ?enablejsapi=1" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>It gives the error:</p>
  
  <blockquote>
    <p>An invalid or illegal string was specified" code: "12</p>
  </blockquote>
  
  <p>What am I doing work?</p>
  
  <p>Thanks!</p>