Video
See also
This is the generation-time override. The video layer is authored inline as part of Design Import → Animated Imports.
Animated designs only
Available only on animated designs.
A video layer embeds a video clip into your animated design. The video is composited into the exported output (MP4, GIF, or HTML5). Supported input format: MP4. Maximum file size: 100 MB.
How the video fills its layer area (fitting_type, alignment, masks) is configured in the design builder. Trim the clip using query parameters on the video URL: append ?trim_start=2.5 to skip the first 2.5 seconds, or ?trim_end=10 to stop at 10 seconds.
Available properties
| Property | Description |
|---|---|
video_url | HTTP(s) URL of the video. Max 100 MB. Supported: MP4. Append ?trim_start=2.5 or ?trim_end=10 to trim |
audio_muted | Number 0–1. 1 mutes the video's audio, 0 keeps it (values in between scale it). Default: 0 |
hidden | Boolean. Hides the video layer if true |
Example
json
{
"video_element_name": {
"video_url": "https://example.com/video.mp4",
"audio_muted": 0,
"hidden": false
}
}Trim example:
json
{
"video_url": "https://example.com/video.mp4?trim_start=2.5&trim_end=10"
}Related
- Element Properties Overview
- Generate Videos — generation endpoint for video formats
- Audio Element — add audio tracks to video formats
