Android Embedded Youtube Quality

Hi, I’m having troubles with the quality of youtube videos in android.

I wanted to know how to FORCE youtube Quality, because always use “recommended” settings and is 360p.

Here is the code that I’ve:

  <script>
  var tag = document.createElement('script');
  tag.src = "https://www.youtube.com/iframe_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  var player;
  
  function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
    height: '1080',
    width: '1920',
    videoId: 'qA6FBDYncGk',
    playerVars: { 
                           'loop': 0,
                           'controls' : 1,
                           'rel' : 0,
                           'fs' : 0,
                           'showinfo' : 1,
                           'cc_load_policy' : 0,
                           'iv_load_policy' : 3,
                           'modestbranding' : 1,
                           'enablejsapi' : 1
                           },
    events: {
      'onReady': onPlayerReady
    }
    });
  }

function onPlayerReady(event) {
event.target.playVideo();
}

</script>

Cheers.

The Xibo Community site uses cookies. What are cookies?