In addition to its common properties, the video element has several properties of its own.
Name | Default | Description |
---|---|---|
duration | media | Identical to duration from the common properties, but with the addition that it can be set to media to make the element as long as the source video. |
source | null | The URL of an video (an mp4) you want to display. If it was uploaded using the template editor, it may also be its internal GUID. |
provider | null | This optional parameter indicates whether to generate the video using a third-party AI platform (such as Stability AI). Refer to the template editor for details on setting up a provider. |
trim_start | null | Trims the source video to begin at the specified time (in seconds) rather than at the beginning. |
trim_duration | null | Trims the source video so that it stops playing after the specified duration (in seconds) rather than at the end of the source video. |
loop | false | When set to true, the video starts over when it reaches the end. This property cannot be used in conjunction with the trim_start and trim_duration properties. |
volume | 100% | Adjusts the volume from 0% to 100%. Set it to 0% to mute the video. |
audio_fade_in | null | Fades in the volume for the specified duration (in seconds) at the beginning of the video clip. |
audio_fade_out | null | Fades out the volume for the specified duration (in seconds) at the end of the video clip. |
fit | cover | This property specifies how the video should be resized to fit the element. It can be set to cover, contain, or fill. |
Check out the template editor's documentation on the video element as well.