Skip to content
Docs
Open Promoeyes

video

UI item · inside ui / ui3duisset 26× in templates and rigs

A video clip on a UI stage, sampled at scene time and cropped to the shape it sits in (a rounded card, an avatar's circle, the device glass).

video(color=#ffffff fit=cover h=1)

Attributes

colorcolour #rrggbbPlaceholder fill shown until the first frame is decoded.26×
fittext`cover` (default), `contain` or `fill`: how the clip meets a box of another aspect.26×
hnumber26×
srctextThe clip, an asset name: `video:<name>` or `media:<name>`.26×
wnumber26×
xnumber24×
ynumber24×
anchortexte.g. top-left11×
rnumberAn explicit corner radius, in stage units; it beats `clip=inherit`.3×
startnumberWhere the clip starts in the source, seconds (default 0).2×
cliptext`inherit` (default) takes the parent's shape; `square` or `none` no mask; `round`; `circle`.1×
endnumberWhere it stops in the source, seconds (default the clip's end).1×
freezetrue / false`true` holds the frame at `start`: a still.1×
speednumberSource seconds per scene second (default 1).1×
descriptiontext0×
hreftext0×
looptrue / false0×
opacitynumber0×
querytext0×

Where it goes