view.video

Player for video playback.

The player is a rectangular block with a frame and buttons to control the video. You can set the block size using the ratio, fullHeight, minWidth, and maxWidth properties.

The video resolution does not affect the size of the block — the video will fit into the block and will not be cropped.

Component properties

NameTypeDescription
type*"view.video"

Set component type

labelstring

Label above the component.

fullHeightboolean

If true, the element takes up all the vertical free space. The element is set to a minimum height of 400 pixels.

hintstring

Hint text.

maxWidthnumber

Maximum width of the element in pixels, must be greater than minWidth.

minWidthnumber

Minimum width of the element in pixels. Takes priority over maxWidth.

ratioarray

The aspect ratio of the video block. An array of two numbers: the first sets the width of the block and the second sets the height.

ratio[]number

Relative size of one side.

url*string

Link to the video file.

validationcondition

Validation based on condition.