Video
Anatomy
Usage Guidelines
Videos can be placed in-page next to other content, or within a modal dialog window component. If a transcript is provided, it will be output in an accordion component underneath the embed container for the video.
Accessibility
If a transcript is provided, make sure that it accurately represents the content of the video.
WordPress
This component can be added to post content with the Video block or the Two Column - Media block in the Gutenberg editor.
Specifications
Properties
Property | Type | Description | Required | Default |
---|---|---|---|---|
embed | string | Script or iframe that embeds the video in the page. Should be just one top level HTML container | Yes | - |
transcript | string | HTML string of content for the transcript | No | - |
Changelog
6.9.0 (2024-04-16)
- feat: updating instructions for iframe lazy loading (52d9abf), closes #569
- feat: updating instructions for iframe lazy loading (3becc83)
1.32.0 (2022-04-26)
1.30.0 (2022-04-01)
1.1.0
- video added
Related
Contains
Other core components embedded within this template.
Examples
Default
Inner heading
Nullam id dolor id nibh ultricies vehicula ut id elit.
{{ include( 'components/video.twig', { embed: "<iframe width="100%" height="auto" src="https://www.youtube.com/embed/XLpwPAB_0OI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>" transcript: "<h3>Inner heading</h3><p>Nullam id dolor id nibh ultricies vehicula ut id elit.</p>" } ) }}