Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube shorts support #193

Open
shakaran opened this issue Dec 20, 2024 · 1 comment
Open

Youtube shorts support #193

shakaran opened this issue Dec 20, 2024 · 1 comment

Comments

@shakaran
Copy link

Youtube seems that is really adopting the fast wave for shorts.

I would like get the same look & feel than Youtube embedded shorts

For example for this one:
https://www.youtube.com/shorts/hFzavKKdV_w

The original iframe load with:

image

<div class="video-container">
    <iframe src="https://www.youtube.com/embed/hFzavKKdV_w" title="¿Conoces la manzana de oro? 🌟🍏" allowfullscreen></iframe>
</div>

Using lite-youtube:

image

<div class="video-container">
	<lite-youtube videoid="hFzavKKdV_w" playlabel="¿Conoces la manzana de oro? 🌟🍏"></lite-youtube>
</div>

If you notice the show several aspect ratio diferent, the logo of youtube shorts for play, the suscribe option, etc

Would this possible to achieve? Thanks

@davidsneighbour
Copy link
Contributor

padding-bottom: calc(100% / (16 / 9));
sets the aspect ratio of the video to 16:9. I guess all you need to do is to set .video-container-for-shorts lite-youtube to a different aspect ratio to achieve that. The Youtube shorts aspect ratio is 9:16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants