justinribeiro / lite-youtube

The fastest little YouTube web component on this side of the internet. The shadow dom web component version of Paul's lite-youtube-embed.
https://www.npmjs.com/package/@justinribeiro/lite-youtube
MIT License
948 stars 70 forks source link

Make poster image quality configurable #28

Closed greatwitenorth closed 2 years ago

greatwitenorth commented 3 years ago

It looks like hqdefault is used by default for the poster image. We need to change this to maxresdefault since hq is just too low res for our needs. Would it be possible to add this as a configurable option?

jameslovallo commented 3 years ago

I'm looking for this as well. It would be awesome to have a "posterquality" prop (or similar) where you can pass in the string to use, i.e. 'maxresdefault' (or even better, use a style tag inside the shadow dom in instead of inline style so you can use media queries to set the poster quality).

@justinribeiro I can make a pull request if you're interested?

Bandarian commented 3 years ago

I'd love to see this implemented too as I'm using the CDN version and kind of handicapped when it comes to selecting the quality of the placeholder image. I see that it's in the original source of Paul Irish's version:

image

Can this function be re-implemented?

nmrose101 commented 2 years ago

Any idea if we can get something like this. It is really bad that the picture it is using is really small.

justinribeiro commented 2 years ago

Working on it.