Video
Decoration and visibility use Decoration & visibility (BlockShell).
Plays an uploaded website video. Controls are on and autoplay is off. Optional poster, loop, muted, and cover or contain fit.
Fields
src
Public URL of a video file stored on the website.
src: [{ if: "*", is: "https://cdn.example/clip.mp4" }]poster
Optional image shown before playback.
poster: [{ if: "*", is: "https://cdn.example/poster.jpg" }]content
playback
loop
When true, the video repeats.
content: {
playback: {
loop: [{ if: "*", is: false }]
}
}muted
When true, the video starts silent.
content: {
playback: {
muted: [{ if: "*", is: false }]
}
}fit
contain keeps the whole frame. cover fills a 16:9 frame.
content: {
playback: {
fit: [{ if: "*", is: "contain" }]
}
}Default props
{
"src": [
{
"if": "*",
"is": ""
}
],
"poster": [
{
"if": "*",
"is": ""
}
],
"shell": {
"visibility": [
{
"if": "*",
"is": true
}
],
"anchor": {
"anchorId": [
{
"if": "*",
"is": ""
}
],
"anchorKey": [
{
"if": "*",
"is": ""
}
]
},
"pointerEvents": [
{
"if": "*",
"is": "auto"
}
]
},
"content": {
"playback": {
"loop": [
{
"if": "*",
"is": false
}
],
"muted": [
{
"if": "*",
"is": false
}
],
"fit": [
{
"if": "*",
"is": "contain"
}
]
}
}
}