VideoViewV1

toloka.client.project.template_builder.view.VideoViewV1 | Source code

VideoViewV1(
self,
url: Optional[Any] = None,
*,
full_height: Optional[Union[BaseComponent, bool]] = None,
max_width: Optional[Union[BaseComponent, float]] = None,
min_width: Optional[Union[BaseComponent, float]] = None,
ratio: Optional[Union[BaseComponent, List[Union[BaseComponent, float]]]] = None,
hint: Optional[Any] = None,
label: Optional[Any] = None,
validation: Optional[BaseComponent] = None,
version: Optional[str] = '1.0.0'
)

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.

Parameters Description

ParametersTypeDescription
urlOptional[Any]

Link to the video file.

full_heightOptional[Union[BaseComponent, bool]]

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

max_widthOptional[Union[BaseComponent, float]]

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

min_widthOptional[Union[BaseComponent, float]]

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

ratioOptional[Union[BaseComponent, List[Union[BaseComponent, float]]]]

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.

hintOptional[Any]

Hint text.

labelOptional[Any]

Label above the component.

validationOptional[BaseComponent]

Validation based on condition.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming