title: where to pass arguments of postMessage command to youtube iframe
body: <p>Sorry if this looks like a repost of an earlier problem of mine, but it isn't.
  It's a different problem of a different approach.</p>
  
  <p>I've got this iframe:</p>
  
  <pre><code>&lt;iframe id="video1" width="970" height="546" src="https://youtube.com/embed/9IYRC7g2ICg?enablejsapi=1&amp;autoplay=1&amp;controls=0&amp;loop=1&amp;playlist=9IYRC7g2ICg&amp;showinfo=0&amp;modestbranding=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Now to manually pause the video when clicked on a custom button, this works fine:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      jQuery(document).ready(function($) {
          $('#button1').click(function() {
              $('#video1')[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>pauseVideo is a command listed here <a href="https://developers.google.com/youtube/iframe_api_reference" rel="nofollow">https://developers.google.com/youtube/iframe_api_reference</a>.</p>
  
  <p>My question is: i'm somehow completely unable to use commands that expect arguments, for example <code>seekTo(seconds:Number, allowSeekAhead:Boolean)</code>.</p>
  
  <p>For jumping to 0:20 in the video, I tried:</p>
  
  <pre><code>$('#video1')[0].contentWindow.postMessage('{"event":"command","func":"seekTo","args":"20, true"}', '*');
  </code></pre>
  
  <p>but with no success.
  I'm probably putting the arguments in the wrong place, since this is the first time I'm working with the postMessage function for iframes and I kinda feel a bit newbie-like in that sense.</p>
  
  <p>Could anybody help me? :)</p>