title: youtube autoplay is not working with iframe
body: <p>i have php function which generate youtube code to display video but auto play is not working properly</p>
  
  <pre><code>function get_youtube_embed($youtube_video_id = 0, $auto = 0) {
      $embed_code = "";
      if ($auto == 1) {
          $embed_code = '&lt;iframe width="589" height="342" src="http://www.youtube.com/embed/' . $youtube_video_id . '?autoplay=1" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;';
      }
      else {
          $embed_code = '&lt;iframe width="589" height="342" src="http://www.youtube.com/embed/' . $youtube_video_id . '" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;';
      }
      return $embed_code;
  }
  </code></pre>
  
  <p>Thanks</p>