YouTube Autoplay not working : <p>My website has a player for multiple videos.  I've been adapting the code to use YouTube's iframe API as the player.  I can't get the videos to autoplay.  Here's the relevant code:</p>

<pre><code>    &lt;body&gt;
          &lt;iframe id="existing-iframe-example"
              width="640" height="360"
              src="https://www.youtube.com/embed/-SFcIUEvNOQ?   autoplay=1&amp;;enablejsapi=1"
              frameborder="0"
              autoplay="1"
              style="border: solid 4px #37474F"
              &gt;&lt;/iframe&gt;
        &lt;div id="player"&gt;&lt;/div&gt;

        &lt;div id="movieButtons" class="movieButtons"&gt;
        &lt;button class="movieButton" data-movieAdr="1-VjtC939_Q"&gt;Memorial Slide Show&lt;/button&gt;
</code></pre>

<p>The rest is standard YouTube iframe API script.  You can see I tried setting Autoplay=1 as both an iframe parameter and as part of the iframe src.  I've also tried including it in the data in the button.  None of these seems to work.  The vids load when the buttons are clicked, but they don't autoplay.</p>
