Video

Overview

The component allows inserting a video via a URL. It is compatible with well-known video hosting platforms such as YouTube and Vimeo, as well as with file types that most browsers can play without additional plugins.

Properties

Name
Type
Description

name

string

Component name

videoType

string | null

Type of video based on the URL provided or null if URL is empty

playbackStatus

'stopped' | 'paused' |

'playing'

String value representing the playback status of the video

Methods

Name
Parameters
Returns
Description

setUrl

url: string

void

Set a new URL for the component

play

–

void

Play video

pause

–

void

Pause video

mute

–

void

Mute video

unmute

–

void

Unmute video

setVolume

volume: number

void

Set volume level for the video (0–100)

setPlaybackSpeed

speed: number

void

Set playback speed for the video. Speed can be of the following numbers 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2.

Triggers

Name
Description

On Init

Triggered when the component is initialized

On Play

Triggered when the video is played

On Pause

Triggered when the video is paused

On Stop

Triggered when the video is stopped

Last updated

Was this helpful?