Preview for Video?

I am currently using https://cookbook.vaadin.com/embed-video to display a video. Is there a way to enhance this to show a preview.jpg for the video?

already found a solution thanks to chatgpt:

@Tag(“video”)
public class Video extends HtmlContainer {
private static final PropertyDescriptor<String, String> srcDescriptor = PropertyDescriptors.attributeWithDefault(
“src”,
“”
);

private static final PropertyDescriptor<String, String> posterDescriptor = PropertyDescriptors.attributeWithDefault(
    "poster",
    ""
);

public Video() {
    super();
    getElement().setProperty("controls", true);
}

public Video(String src) {
    setSrc(src);
    getElement().setProperty("controls", true);
}

public String getSrc() {
    return get(srcDescriptor);
}

public void setSrc(String src) {
    set(srcDescriptor, src);
}

public String getPoster() {
    return get(posterDescriptor);
}

public void setPoster(String poster) {
    set(posterDescriptor, poster);
}

}

Haha, that’s awesome