Skip to main content

Video Player

Overview

A semi-visible component to play videos

Component Properties

PropertyDescription
SourceIt specifies the source of the video present in your assests.
Auto playIf enabled, the video will start playing as soon as the webpage is loaded.
loopIf enabled, the video will continuously replay from the beginning after reaching the end.

Blocks

Events

On video ended

Event fires when the video playing ended

loading block...

On pause

Event fires when the video paused

loading block...

On error

Event fires when their is an error in video component

loading block...

variabletypedescription
messageStringThe error message

Methods

mute

mutes the playing video

loading block...

unmute

unmutes the playing video

loading block...

play

plays the video

loading block...

pause

pauses the video

loading block...

Properties

source

Accepts: Asset

sets the source of video component

loading block...

source

Returns: Asset

gets the source of video component

loading block...

hide

Accepts: Boolean

Hides the component if the input is true and shows it if the input is false

loading block...

hidden

Returns: Boolean

Returns true if the component is hidden and false if it is not

loading block...