ContentVideoEmbed
Use ContentVideoEmbed for a demonstration or visual briefing when text and a still image are not enough. Supply a descriptive title, published src, accessible captions in the media, and a transcript or equivalent description in the document.
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
src | Yes | None | Published video source. |
title | Yes | None | Descriptive video title. |
poster | No | None | Optional poster image. |
caption | No | None | Visible caption; not a timed subtitle track. |
Example
<ContentVideoEmbed
src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
title="Short CC0 video sample"
poster="https://developer.mozilla.org/shared-assets/images/examples/flowers.jpg"
caption="A short CC0 video sample demonstrating native playback controls."
/>
<p>
Text equivalent: This example demonstrates the video player; keep the essential message available in surrounding text.
</p>
Text equivalent: This example demonstrates the video player; keep the essential message available in surrounding text.