Video

A versatile video player component that supports multiple video formats including YouTube, HLS streaming, and MP4. Features customizable dimensions, responsive layout, and automatic format detection. Supports autoplay functionality and standard video player controls.


Extends: fieldComponent


Fields

Name

Code

Data Type

Description

Label

label

text

Display label for the video player

Locale

locale

text

Display text in the selected language for the captions in the video player

ID

resourceId

text

Unique identifier for the component

Style Classes

styleClasses

text

CSS classes for styling

Width Class

widthClass

text

Controls component width

Video

(N/A)

text

Specifies the type of video content (HLS, video/mp4, YouTube)

Visible

isVisible

boolean

Controls component visibility

Height

height

text

Sets the height of the video player

Width

width

text

Sets the width of the video player

Enabled

isEnabled

boolean

Controls whether component is enabled

Field Style

fieldStyle

text

Additional field styling options


Methods

Name

Description

getVideoId

Generates unique identifier for the video player element

loadVideo

Handles video loading based on video type (HLS, MP4, YouTube)

onValueChange

Handles source changes and triggers video reload

onchange

Triggers change event handlers


Events

Name

Description

onChange

Triggered when the video source changes

onBlur

Triggered when the video player loses focus

onFocus

Triggered when the video player gains focus