title: How to Play a Playlist using YouTube JavaScript API
body: <p>I'm trying to play a youtube playlist using this JavaScript API for iframe-embeds introduced this January.
  <a href="http://apiblog.youtube.com/2011/01/introducing-javascript-player-api-for.html" rel="noreferrer">http://apiblog.youtube.com/2011/01/introducing-javascript-player-api-for.html</a></p>
  
  <p>Note the iframe tag below and the link which has "/p" to denote its a playlist.</p>
  
  <pre><code>&lt;iframe src="http://www.youtube.com/embed/p/ID" width="100%" height="500" frameborder="0"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>However even in the documentation at <a href="http://code.google.com/apis/youtube/iframe_api_reference.html" rel="noreferrer">http://code.google.com/apis/youtube/iframe_api_reference.html</a> I'm not able to find how can I play a playlist using <code>onYouTubePlayerAPIReady()</code> call.</p>