For self hosted videos I’ve used the Kirby ‘poster’ ((video: …) | Kirby CMS) attribute to specify an image to be shown before the video is clicked.
But I’m now trying to embed some YouTube videos. poster is not supported by YouTube. So how do I get a poster / thumbnail image to display before the video is clicked?
In Safari the embedded video has a nice preview image (poster / thumbnail whatever it is called):
I’ve noticed that if I remove the CSS and allow the video to display at the default fixed width, a thumbnail image is used. See below. But as soon as I make the video responsive, the thumbnail in Chrome and FF disappears.
I think the video is missing the high res YouTube thumbnail. So when the iframe is wider than 640px, and presumably the high res thumbnail is needed, I’m getting the 3 dots instead. It’s frustrating that browsers are not defaulting to the next biggest thumbnail available.
Self-hosted videos using the Kirby posters attribute, start when the poster is clicked. I’m trying to recreate this, with an image, that when clicked reveals and starts to play the video. I’ve got the following code, but I’m having to click twice. Once to reveal the video and a second time to play the video. How does the Kirby poster get the video to play on one click?