video-player

This component is used to play a video in headers, or as components in a jig.default.

Configuration options

Some properties are common to all components, see Common component properties for a list and their configuration options.

Core structure

URL

Specify the URL for the video. The URL format can be:

  • A direct URL, for example, - An embeded URL, for example, <iframe src="https://player.vimeo.com/video/76979871?quality=720p"></iframe>

  • A URL referenced in a datasource, for example, url: [email protected]

Other options

autoplay

Set to true will automatically start playing the video. Set to false requires you to press the play button. Default setting is false.

loop

For continuous looping of the video set the property to true. Default setting is false.

ratio

There are 2 options:

  • 16:9

  • 4:3

title

The title of the video.

  • With a 16:9 ratio, the text overlays at the bottom left of the video.

  • With a 4:3 ratio the text displays under the video.

Title and subtitle must be configured together for the text to display on the video. Using either one on their own will result in no text being displayed.

subtitle

The subtitle of the video.

  • With a 16:9 ratio, the text overlays at the bottom left of the video.

  • With a 4:3 ratio the text displays under the video.

Title and subtitle must be configured together for the text to display on the video. Using either one on their own will result in no text being displayed.

Considerations

Examples and code snippets

Video player as children of the jig

video-player
video-player

This example shows a video player inside a jig. The ratio is only set for non-YouTube videos.

Examples: See the full example using static data on GitHubarrow-up-right. See the full example using dynamic data on GitHubarrow-up-right.

Datasource: See the full datasource for dynamic data on GitHubarrow-up-right

Video player in header

video-player in header
video-player in header

This example shows the video player as a jig header. Ideal for product videos.

Examples:

See the complete example using static data on GitHubarrow-up-right. See the complete example using dynamic data on GitHubarrow-up-right.

Datasource: See the complete datasource for dynamic data on GitHubarrow-up-right.

Last updated

Was this helpful?