fh-components
fh-components copied to clipboard
Add `autoplay` parameter on responsive-image
Added in c9b264e
I think I'm missing why this is needed, having this prop basically just turns the video into a still image. Why do we need it? And having it false
by default might break older sites when they update, right?
Good points! I think this was for responsive images that have video with sound attached, to get around new autoplay restrictions, but if we're using a video with sound it should probably be a video-stage
anyway. And you're right that it would break older sites. I'll revert this commit for now and we can discuss more if it's needed - @lwaldner @drewbaker are there any good use cases you can think of?
I'm not 100% sure what this controls, but the use case I'd want is to have a still image by default, then on hover it plays a video. Like on WhatYouth. Then when I hover on the same video again, it should start at the beginning again.
That's definitely a use I hadn't thought of. With that in mind maybe we should keep the prop and just have it true by default?