Toloka documentation

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

Name

Type

Description

type*

"view.video"

Set component type

label

string

Label above the component.

fullHeight

boolean

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

hint

string

Hint text.

maxWidth

number

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

minWidth

number

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

ratio

array

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.

validation

condition

Validation based on condition.