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

ParameterRequiredDefaultDescription
srcYesNonePublished video source.
titleYesNoneDescriptive video title.
posterNoNoneOptional poster image.
captionNoNoneVisible 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>
A short CC0 video sample demonstrating native playback controls.

Text equivalent: This example demonstrates the video player; keep the essential message available in surrounding text.