Video

A video component that 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.

Methods

Method
Description

setURL(URL: string)

sets component's URL

play()

plays the video

pause()

pauses the video

mute()

mutes the video

unmute()

unmutes the video

setVolume(volume: number)

sets the video volume

setPlaybackSpeed(speed: number)

sets the video playback speed

Triggers

Triggers allow you to launch certain actions based on different events.

On Init

Calls for an action on component initialization, e.g., page refresh

On Play

Calls for an action on video play

On Pause

Calls for an action on video pause

On Stop

Calls for an action on video stop

Last updated

© 2024 UI Bakery