title: How does cc_load_policy work in youtube iframe Player API to show subtitles?
body: <p>I am trying to use the 'cc_load_policy' parameter of the youtube API-iframe player. And I'm not able to make it work on my page.</p>
  
  <p>As you can see, I'm indicating the cc_load_policy to 1 so that the subtitles are always shown and the cc_lang pred to 'en' (Since my subtitles are in English).</p>
  
  <pre class="lang-js prettyprint-override"><code>
  var player;
  function onYouTubeIframeAPIReady() {
      player = new YT.Player('player', {
          height: '100%',
          width: '100%',
          videoId: /*MY YOUTUBE ID*/,
          playlist: /*MY YOUTUBE ID */,
          playerVars:{
             'autoplay': 1,
             'controls': 0,
             'disablekb': 0,
             'fs':0,
             'modestbranding':0,
             'rel':0,
             'hd':1,
             'autohide': 0,
             'wmode': 'transparent',
             'showinfo': 0,
             'loop' : 1,
             'cc_load_policy' : 1,
             'cc_lang_pref' : 'en',
             'iv_load_policy' : 3
         },
         events: {
            'onReady': onPlayerReady,
            'onStateChange' : onStateChange
         }
      });
  }
  
  function onPlayerReady(event) {event.target.playVideo();}
  function onStateChange(evt){
     if (evt.data === YT.PlayerState.ENDED) {
         player.playVideo(); 
     }
  }
  
  </code></pre>
  
  <p>If the url that general the code copied and pasted on a tab, the subtitles work perfectly, however within the iframe autogenerated by the api, it does not work.</p>
  
  <p>Does anyone know what my mistake is? Can the Api have an error or an unknown limitation for me?</p>
  
  <p>I have read the documentation several times and I can not find an explanation for my problem.</p>