Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS Iframe API loading thumbnails in low resulution #55

Open
jasenkoh opened this issue Dec 6, 2015 · 1 comment
Open

JS Iframe API loading thumbnails in low resulution #55

jasenkoh opened this issue Dec 6, 2015 · 1 comment

Comments

@jasenkoh
Copy link

jasenkoh commented Dec 6, 2015

Hello,

Each time I do player.cueVideoById thumbnail is loaded as default quality, even I when I specify suggestedQuality property it's being ignored.

Anyone have similar experience before?

@shashankshahplutus
Copy link

Yes, cueVideoById loads default thumbnail and not high quality thumbnail. Remove cueVideoById will load high resolution image. player.cueVideoById is used for not playing video on page load.

Instead you can play video on click by putting code into onPlayerReady function.

function onPlayerReady(event) {

     var play= document.getElementById("play-button");
       play.addEventListener("click", function() {
           player.playVideo("YoutvideoID");
  });
  
  var pause= document.getElementById("pause-button");
      pause.addEventListener("click", function() {
      player.pause("YoutvideoID");
  });
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants