It's a shame we can't currently specify multiple poster image sources for a video element to be used depending on pixel density and size of the video element.
I'd propose that there be a posterset attribute similar to img srcset, if expanding the poster attribute's inputs seems unwise.
cc @tabatkins re: srcset
Yeah, I'm def down with the concept. Question is just if we think there's a necessity for full art-direction (multiple source elements) or if it's fine to just provide different-density variants of the same image. I suspect the latter.
I think I agree, although I want to make sure your suggestion accounts for variants based on size, not just density. Basically whatever the img srcset attribute supports.
srcset only allows varying on density. You can specify the density indirectly (via sizes and w), but all the variants are still required to be the exact same image, just at different densities.
If you want to change the size/aspect-ratio of the image, that's what you need multiple sources for in picture; that's less compatible with video, as it's already using source for something else. ^_^
@tabatkins oh got it.
I agree there's no compelling reason to support multiple aspect ratios/multiple source elements.
Regarding size, I guess what I was looking for was a way to select the correct image url based on the w in srcset and the computed size of the video, without adding the sizes attribute - although maybe sizes would be required for that.
Most helpful comment
Yeah, I'm def down with the concept. Question is just if we think there's a necessity for full art-direction (multiple
sourceelements) or if it's fine to just provide different-density variants of the same image. I suspect the latter.