title: Adding additional parameters to the yt.player object from youtube
body: <p>I'm initiating a youtube video using yt.player like this:</p>
  
  <pre><code>function onYouTubeIframeAPIReady() {
      player = new YT.Player('player', {
          height: '720',
          width: '1280',
          html5: 0,
          videoId: 'i8IXMGHpGBk',
          events: {
              'onStateChange': function(e) {
                  if (e.data == 0) {
                      //skrolla här
                  }
              }
          }
      });
  }
  </code></pre>
  
  <p>When adding a video using the embed-code, I can add a multitude of other parameters, like these:
  controls=0&amp;modestbranding=1&amp;showinfo=0&amp;autoplay=1</p>
  
  <p>When i try to add autoplay for example I tried this:</p>
  
  <pre><code>function onYouTubeIframeAPIReady() {
      player = new YT.Player('player', {
          height: '720',
          width: '1280',
          html5: 0,
          videoId: 'i8IXMGHpGBk',
          autoplay: 1,
          events: {
              'onStateChange': function(e) {
                  if (e.data == 0) {
                      //skrolla här
                  }
              }
          }
      })
  </code></pre>
  
  <p>but it doesn't work. What am I doing wrong?</p>