You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The video element currently offers a single poster attribute, which allows us to load one poster image source. This is limiting when attempting to deliver an appropriate poster image size depending on browsing conditions. It would be better if multiple sources could be offered to the browser to display based on varying conditions, as several other issues have mentioned.
Some of those conditions are:
image resolution switching
screen resolution/density differences
art direction with videos with different aspect ratios for different viewport sizes
To expand on that last point: now that the video element allows for "responsive" source elements that use media attributes, developers can offer video sources based on media conditions like orientation, pixel density, and more.
Some proposals have suggested attributes to expand our ability to reference poster image sources, but attributes alone could be limited in trying to address even the cases listed above.
Allowing a picture element inside the video element could be a way to offer all of the various use cases that a poster image may need to cover. (This idea was first pointed out here I believe: #6636 (comment) )
Thanks!
The text was updated successfully, but these errors were encountered:
What is the issue with the HTML Standard?
The video element currently offers a single poster attribute, which allows us to load one poster image source. This is limiting when attempting to deliver an appropriate poster image size depending on browsing conditions. It would be better if multiple sources could be offered to the browser to display based on varying conditions, as several other issues have mentioned.
Some of those conditions are:
To expand on that last point: now that the video element allows for "responsive" source elements that use media attributes, developers can offer video sources based on media conditions like orientation, pixel density, and more.
Some proposals have suggested attributes to expand our ability to reference poster image sources, but attributes alone could be limited in trying to address even the cases listed above.
Allowing a
picture
element inside thevideo
element could be a way to offer all of the various use cases that a poster image may need to cover. (This idea was first pointed out here I believe: #6636 (comment) )Thanks!
The text was updated successfully, but these errors were encountered: