-
-
Notifications
You must be signed in to change notification settings - Fork 6
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>
`
}
I would be very happy if you want me to help me to improve this documentation. If you have troubles to get it running, drop me a line by starting a discussion and I'll try to help you out.