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

Feature request: dealing with youtube shorts #64

Closed jumeitent closed 2 years ago

jumeitent commented 2 years ago

Could you add a feature that can handle the Youtube shorts video? Thank you in advance!

justinribeiro commented 2 years ago

By default, the component will load YouTube shorts (and example is on my https://justinribeiro.com/ homepage), but I realize it's not ideal. I haven't quite worked out exactly what shape to make it in terms of responsiveness, but am looking into it.

jumeitent commented 2 years ago

Thank you!

justinribeiro commented 2 years ago

I've gone ahead and made a first pass of this via the above referenced PR; you can see the reasoning in this video: https://www.youtube.com/watch?v=aw7CRQTuRfo

This will be released as v1.4 later this week (I have a few other tweaks to make).