Prop | Type | Required | Example | Value Range | Description |
---|---|---|---|---|---|
width | number | true | - | - | The width of the video element. |
height | number | true | - | - | The height of the video element. |
ext | string | true | - | mp4 | mov | The file extension of the video (e.g., "mp4", "mov"). |
externalUrl | string | false | - | - | The URL of the video file from an external source. |
startInSource | number | true | - | - | The start time of the video clip in the source file, in seconds. Usually 0, only differs from 0 when the video node has been trimmed from the front of the source video. |
isFrontTrimmed | boolean | false | - | - | Indicates whether the video has been trimmed from the front of the source video. Should be set to true when startInSource is not 0. |
volume | number | false | - | 0 - 1 | The volume level of the video element. 1 represents full volume, and 0 represents muted. |
hasAudio | boolean | true | - | - | Indicates whether the video element contains audio. |
tone | object | false | - | - | Adjustments to the image tone, including gamma, saturation, contrast, brightness, and color channels. |
lut | object | false | - | - | The lookup table used to adjust the image tone. |
filterAgent | object | false | - | - | The filter agent applied to the image. |
maskData | object | false | - | - | The mask data used to crop the image. |
Note:
- The externalUrl must be accessible.
- Only H.264 encoded videos are supported; HEVC (H.265) encoded videos are not supported.
- In most cases,
startInSource
is 0. It only differs from 0 when the video node has been trimmed from the front of the source video.- When
startInSource
is not 0, you should setisFrontTrimmed
to true to indicate that the video has been front-trimmed.
1{
2 "id": "30793500-aee2-4f6d-845f-b3adbe4302ca",
3 "type": "Video",
4 "width": 1280,
5 "height": 720,
6 "hasAudio": true,
7 "start": 0,
8 "duration": 10.218542,
9 "trackIndex": 0,
10 "x": -209.95197696399893,
11 "y": 254.59255700448338,
12 "blendMode": "normal",
13 "anchorX": 640,
14 "anchorY": 360,
15 "rotation": 0,
16 "scaleX": 1,
17 "scaleY": 1,
18 "alpha": 1,
19 "skewX": 0,
20 "skewY": 0,
21 "keyframes": [],
22 "filterAgent": {
23 "type": "Pixelate",
24 "options": [{ "key": "size", "value": 8, "min": 1, "max": 100 }]
25 },
26 "externalUrl": "https://videos.pexels.com/video-files/1526909/1526909-hd_1280_720_24fps.mp4",
27 "ext": "mp4",
28 "tone": {
29 "gamma": -0.66,
30 "saturation": 0,
31 "contrast": 0,
32 "brightness": 0,
33 "red": 0,
34 "green": 0,
35 "blue": 0
36 },
37 "startInSource": 0,
38 "volume": 1
39 }
40