Feature Automatically Load Video sized for containing element (srcset for video) #16
ThatGuySam
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea is that you would set your video URL as the source and it would only load videos that are sized exactly to what you need so you get the best performance.
Example Implementation with Web Component and MP4 Video
And that effectively render out to something like the following:
Perhaps another idea could be setting max size or based screen size/pixel depth
For example, you probably don't always need a 1080p video for a 1080 pixel wide area depending on the context of what you're loading and where you're loading it.
Beta Was this translation helpful? Give feedback.
All reactions