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.