@veams/component-video
v1.0.1
Published
A video component supporting WebM, MP4 and Subtitles.
Downloads
78
Readme
Video
Description
A video component supporting WebM, MP4 and Subtitles.
Installation
Installation with Veams
veams install component video
veams -i c video
Fields
video.hbs
Settings
| Parameter | Type | Value | Description |
|:--- | :---: |:---: | :--- |
| settings.videoContextClass | String | default
| Context class of component. |
| settings.videoClasses | String | | Modifier classes for component. |
| settings.videoOptions | String | | Apply multiple options as string. |
Content
| Parameter | Type | Description | |:--- | :---: | :--- | | content.videoPoster | String | Url to a poster image. | | content.videoMp4 | String | Url to mp4 video file. | | content.videoWebm | String | Url to webm video file. | | content.videoTrack | Object | Object which contains tracking data. | | content.videoTrack.trackSrc | String | Url to track file. | | content.videoTrack.trackSubtitle | String | Subtitle. | | content.videoTrack.trackLang | String | Language. | | content.videoTrack.trackLabel | String | Label. |