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.

Home Page:https://www.npmjs.com/package/@justinribeiro/lite-youtube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make poster image quality configurable

greatwitenorth opened this issue · comments

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?

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?

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?

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

Working on it.