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

Add "Responsive Video" aka. media attribute for <source> element in <video> #6845

Open
Schweinepriester opened this issue Sep 29, 2023 · 2 comments

Comments

@Schweinepriester
Copy link
Contributor

Like so (stolen from the blog post):

<video controls autoplay loop>
    <source src="large.mp4" type="video/mp4" media="(min-width: 600px)">
    <source src="small.mp4" type="video/mp4">
</video>
@Schweinepriester
Copy link
Contributor Author

@its2easy
Copy link

its2easy commented Feb 7, 2024

it was enabled in chrome 120 and firefox 120

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

No branches or pull requests

3 participants