Video
Properties
Available properties for Video with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The current playback position of the video.
The total duration, in seconds.
Whether the component is visible.
Whether to hide video playback controls. Some video sources and browsers may not support this.
Whether to replay the video automatically.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
The playback speed, expressed in increments of 1
. Default is 1
for 1x speed. Negative values are not supported. Some video sources and browsers may clamp the speed range.
Whether the video is currently playing. If set to true
, the video autoplays on page load.
Whether the component remains visible in the editor if hidden
is true
.
The source URL.
The text to display in a tooltip on hover or focus.
The audio volume, between 0
and 1
.
Events
Events are triggered by user interactions with Video. Use event handling to trigger queries or other actions in response to events.
Video playback starts or resumes.
Video playback is paused.
Video is loaded.
Video playback is stopped.
Methods
Methods for interacting with Video. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
Play the video.
Pause the video.
Seek to a specific playback time.