VideoThumbnail
Introduction
VideoThumbnail
widget in Supervisely is a widget that allows to display a thumbnail image that represents specific video. It is a useful widget for applications that work with videos, allowing users to have quick access to this video, so that when the user clicks on the thumbnail, the link will take him to this video.
Function signature
Parameters
Parameters | Type | Description |
---|---|---|
|
|
|
|
| ID of the widget |
info
NamedTuple
, containing information about video project.
type: VideoInfo
default value: None
widget_id
ID of the widget.
type: str
default value: None
Methods and attributes
Attributes and Methods | Description |
---|---|
| Set input video project data by video project info. |
| Set input video project data by video project id. |
Mini App Example
You can find this example in our Github repository:
ui-widgets-demos/thumbnail/003_video_thumbnail/src/main.py
Import libraries
Init API client
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Initialize VideoThumbnail
widget
VideoThumbnail
widgetCreate app layout
Prepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create app using layout
Create an app object with layout parameter.
Last updated