Skip to content

05. Custom preview

Jon Uhlmann edited this page Dec 12, 2023 · 1 revision

You can customize the preview for the Video, YouTube and Vimeo player.

Just set the property preview and it will use it instead of the images set.

prototype(Jonnitto.PrettyEmbedVideo:Content.Video) {

    preview = afx`
        <picture>
           ...
        </picture>
    `
}
prototype(Jonnitto.PrettyEmbedVideoStreaming:Content.Video) {

    preview = afx`
        <picture>
           ...
        </picture>
    `
}
prototype(Jonnitto.PrettyEmbedVideoPlatforms:Content.Video) {

    preview = afx`
        <picture>
           ...
        </picture>
    `
}