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
836 stars 63 forks source link

Doesn't work well when aspect ratio is different from 16:9 #92

Open elibarzilay opened 1 year ago

elibarzilay commented 1 year ago

I have a page with a few videos that have a weird non-16/9 aspect ratio. The result renders that inside of a 16/9 iframe which makes it look bad. I just blindly grepped the code for 16 / 9 and changed it which looks like it makes it work as intended.