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.

View example

Component properties

NameTypeDescription
type*"view.video"Set component type.
labelstringLabel above the component.
fullHeightbooleanIf true, the element takes up all the vertical free space. The element is set to a minimum height of 400 pixels.
hintstringHint text.
maxWidthnumberMaximum width of the element in pixels, must be greater than minWidth.
minWidthnumberMinimum width of the element in pixels. Takes priority over maxWidth.
ratioarrayThe 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[]numberRelative size of one side.
url*stringLink to the video file.
validationconditionValidation based on condition.
Contact support

Last updated: August 24, 2023

Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
FAQTroubleshootingSupportGlossary