title: youtube iframe events
body: <p>I try to catch the events of a youtube iframe:
  <a href="http://lab.joergpfeiffer.de/videofull/youtube.php" rel="nofollow">http://lab.joergpfeiffer.de/videofull/youtube.php</a></p>
  
  <p>So I call first the api</p>
  
  <pre><code>&lt;script type='text/javascript' src='http://www.youtube.com/player_api'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I set the iframe</p>
  
  <pre><code>&lt;iframe id="ytfullplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/p/B93C3D017CB2D65A?enablejsapi=1&amp;origin=lab.domain.de" frameborder="0" &gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>and try to set the events later in </p>
  
  <pre><code>var ytfullplayer;
      function onYouTubePlayerAPIReady() {
          console.log('onYouTubePlayerAPIReady');
          ytfullplayer = new YT.Player('ytfullplayer', {
              events: {
                'onReady': testfunc,
                'onPlaybackQualityChange': testfunc,
                'onStateChange': testfunc,
                'onError': testfunc
              }
          });
  
      }
      function testfunc(){ alert('hello'); }
  </code></pre>
  
  <p>Whatever I do, there are no events fired. And I read the iframe api 10 times. it should work actually.</p>
  
  <p>Any idea?</p>