sharu725 / youtube-embed

Embeds a clickable youtube thumbnail instead of the iframe. Upon clicking, loads the iframe.
https://embed.sveltethemes.dev
39 stars 8 forks source link

Use aspect ratio from youtube json response for embedding #28

Open acmiyaguchi opened 5 months ago

acmiyaguchi commented 5 months ago

I have some oddly shaped youtube videos that I'm adding to my website, and if they aren't in the standard 16:9 format, they end up being broken in the controls. This enables alternative aspect ratios (I suspect things like youtube shorts are a good thing to test with this).

As a side-effect, I've had to upgrade svelte packaging since I wasn't able to build package as-is.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
youtube-embed ❌ Failed (Inspect) Apr 11, 2024 6:49pm