Introduction
The Video component is used to display video content, allowing users to render videos on their devices.
On the Canvas, the Video component can be presented in various layouts and arrangements.
Frame Block
The Frame attributes of this component are the same as those of the Rect component. For details, refer to the Rect component’s Frame section.
Properties Block
The basic Properties inherit from the Rect component. For details, see the Rect component’s Properties section.
Additional Properties
Property Name | Property Type | Description |
Path | One Of
One Of (String / Object / Array) | The video path list or the single video file path (URL or video file from Media Box). The video path list or a single video file path (URL or Media Box file). |
MD5 | String String (128-bit hash value) | The checksum of the file. Automatically generated checksum for ensuring file integrity during transmission. |
Resize mode | One Of list | The resize methods that will be applied when the image's dimensions differ from the image brick's (the container's) dimensions.
Defines how the video is resized when its dimensions differ from the container (video brick). |
Repeat | Boolean Boolean (Yes/No) | To set whether the video/ video list will be played on repeat. Sets whether the video or video list should play on repeat. |
Replay On Error | Boolean Boolean (Yes/No) | To set whether to replay the video when errors occurred. Sets whether the video should replay when an error occurs. |
Replay Timeout | ms Milliseconds (ms) | (When repeat is set to Yes and ReplayOnError is set to Yes) The replay timeout is the wait time before the video/ video list is being replayed. Sets the wait time before replaying the video or video list after ending or encountering an error. |
Properties – Border Block
The border attributes are the same as those of the Rect component. For details, see the Rect component’s Border section.
Animations Block
The animation event attributes are the same as those of the Rect component. For details, see the Rect component’s Animation section.
Additional Animation Events
Next Video | Animation that will be triggered when the next video is about to be played. Animation triggered when the next video is about to play. |
Round End | Animation that will be triggered when all videos on the list are done playing. Animation triggered when all videos in the list have finished playing. |
On Load | Animation that will be triggered when the video is loaded. Animation triggered when the video is successfully loaded. |
On Error | Animation that will be triggered when the video is not successfully loaded. Animation triggered when the video fails to load. |
Events
The event attributes are the same as those of the Rect component. For details, see the Rect component’s Event section.
Additional Events
Next Video | Event that will be triggered when the next video is about to be played. Event triggered when the next video is about to play. |
Round End | Event that will be triggered when all videos on the list are done playing. Event triggered when all videos in the list have finished playing. |
On Load | Event that will be triggered when the video is loaded. Event triggered when the video is successfully loaded. |
On Error | Event that will be triggered when the video is not successfully loaded. Event triggered when the video fails to load. |