title: Youtube API https Protocol
body: <p>When I create an iframe player API using the <code>onYouTubeIframeAPIReady</code>, the link is created with the <code>http</code> protocol</p>
  
  <p>Example:</p>
  
  <pre><code>  // 2. This code loads the IFrame Player API code asynchronously.
        var tag = document.createElement('script');
  
          tag.src = "https://www.youtube.com/iframe_api";
          var firstScriptTag = document.getElementsByTagName('script')[0];
          firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  
        // 3. This function creates an &lt;iframe&gt; (and YouTube player)
        //    after the API code downloads.
        var player;
        function onYouTubeIframeAPIReady() {
          player = new YT.Player('player', {
            width: '560',
            height: '600',
            videoId: '7j8B_r4OfAw',
            events: {
              'onReady': onPlayerReady,
              'onStateChange': onPlayerStateChange
            }
          });
        }
  </code></pre>
  
  <p>iframe Result:</p>
  
  <pre><code>&lt;iframe id="player" frameborder="0" allowfullscreen="1" title="YouTube video player" width="560" height="600" src="http://www.youtube.com/embed/7j8B_r4OfAw?enablejsapi=1"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Does anyone know how to do the video to be created with the <code>https</code> protocol? Need to install the api on a platform.</p>
  
  <p>Please, suggest!</p>