Hello,
I have a video fieldset for my layout field where a poster image can be chosen.
I can’t make this poster image to work as the ‘preview’ for this block in the panel.
It would be essentially the same idea as the image block, that previews the image you upload.
Is there a way to achieve that?
name: Video
icon: video
preview: image
fields:
url:
label: Video (URL)
type: url
placeholder: https://player.vimeo.com/
help: The video url needs to be generated as an .mp4 file from Vimeo, etc
image:
label: Poster
type: files
multiple: false
image:
back: black
If you want to use the image preview, you would have to use a custom block type (i.e. you would have to give your video block a different name, because if you use the same name, it will use the default video preview).
As @jimbobrjames already said, creating a custom preview is no big deal, if you want to play the video rather than show the poster images.
Or, if you would rather keep the name video, it would also be quite easy to create a custom preview for the poster file.