Desktop
Title and a one-line description under the video.
Official government website An official website of the Federal Government of Nigeria
How you knowA 16:9 slot for a video, with a title and an optional description. The browser’s own player supplies play, captions and the other controls.
Updated
How to register a business name
A walk-through of the online steps, from creating an account to paying the fee.
Video embed
Poster and captions load with the page; the video loads on play.
<figure class="nds-video-embed nds-video-embed--desktop"> <div class="nds-video-embed__media"> <video class="nds-video-embed__video" controls preload="none" width="640" height="360" poster="/media/register-business-poster.jpg" > <source src="/media/register-business.mp4" type="video/mp4" /> <track kind="captions" src="/media/register-business-captions.vtt" srclang="en" label="English" /> </video> </div> <figcaption class="nds-video-embed__body"> <p class="nds-video-embed__title"> How to register a business name </p> <p class="nds-video-embed__description"> A walk-through of the online steps, from creating an account to paying the fee. </p> </figcaption></figure> Usage
<!-- wp:nds/video-embed {} --><figure class="nds-video-embed nds-video-embed--desktop"> <div class="nds-video-embed__media"> <video class="nds-video-embed__video" controls preload="none" width="640" height="360" poster="/media/register-business-poster.jpg" > <source src="/media/register-business.mp4" type="video/mp4" /> <track kind="captions" src="/media/register-business-captions.vtt" srclang="en" label="English" /> </video> </div> <figcaption class="nds-video-embed__body"> <p class="nds-video-embed__title"> How to register a business name </p> <p class="nds-video-embed__description"> A walk-through of the online steps, from creating an account to paying the fee. </p> </figcaption></figure><!-- /wp:nds/video-embed --> Usage
import { VideoEmbed } from "@nigerian-design-standards/react";<VideoEmbed title="How to register a business name" description="A walk-through of the online steps, from creating an account to paying the fee."/> Usage
use NDS\Components\VideoEmbed;echo VideoEmbed::render([ 'title' => 'How to register a business name', 'description' => 'A walk-through of the online steps, from creating an account to paying the fee.',]); Use a video when moving pictures explain something text can’t, like a process or a place. Always give a text alternative, and only if it’s worth the data on a slow or metered connection.
Desktop or mobile, with or without a description.
How to register a business name
A walk-through of the online steps, from creating an account to paying the fee.
Title and a one-line description under the video.
How to register a business name
Title only when space is tight.
How to register a business name
A walk-through of the online steps, from creating an account to paying the fee.
Full width with 16px margins on the page.
How to register a business name
The shortest version, for lists of videos.
| Property | Type | Possible values | Description |
|---|---|---|---|
| title | string | any text | Names the video and is the player’s accessible title. |
| description | string | any text | Optional. One line on what the video shows. |
| device | string |
| Desktop or mobile width behaviour. |
| posterUrl | string | any text | Poster image shown before play. Only the poster loads with the page. |
| videoSrc | string | any text | MP4 source URL. Load when people press play when hosted off-page. |
| captionsSrc | string | any text | WebVTT captions file for speech. |
| transcriptHref | string | any text | Link to a transcript when the video has speech. |
In code, use video with controls and preload="none" and a poster, plus track kind="captions", inside a figure with the
title in the figcaption. Only the poster loads with the page, and nothing plays on its
own. For a hosted video, load the player only when people press play.
| Key | What it does |
|---|---|
| Tab | Moves into the video and its native controls. |
| Space or Enter | Play or pause when the video control has focus. |
Use Video embed from 01 Library – Foundations. Match spacing and type from the NDS documentation frame.
Is this page useful?