Video
Displays a simple video player.
Parameters (Blade)
| Key | Default value | Type | Available values | Description |
|---|---|---|---|---|
|
hasControls
|
true | boolean | - | Adds UI controls for play and pause |
|
isMuted
|
false | boolean | - | If there should be audio enabled |
|
shouldAutoplay
|
false | boolean | - | If the video should start automatically (requires isMuted) |
|
errorMessage
|
This component is not supported by your browser. | string | - | A message to display when video is not supported. |
|
formats
|
[] | array | - | Array of formats |
|
height
|
300 | integer | - | Initial height of video |
|
width
|
600 | integer | - | Initial width of video |
|
subtitles
|
false | boolean | - | Array of subtitles for video |
|
id
|
string | - | The DOM id of the component. | |
|
classList
|
[] | array | - | Array containing wrapping classes array |
|
attributeList
|
[] | array | - | Array containing keys and values rendered as attributes |