Mordoc

Video Embeds

Embed a video already hosted on YouTube, Vimeo, or Loom.

1 MIN READ

Use a video embed when the video is already hosted somewhere else. For a short, silent demo loop you host yourself, use a clip instead.

Mordoc supports native video embed player for Youtube, Vimeo and Loom.

Add a video embed

Markdown
{% videoEmbed 
  src="https://www.youtube.com/watch?v=AF8d72mA41M" 
  title="Why it was almost impossible to make the blue LED" 
/%}

How it renders

Why it was almost impossible to make the blue LED

Unrecognized hosts

If src isn't one of the providers above, Mordoc doesn't try to render a broken embed. It shows a link-out card instead, using thumbnail if you set one:

Markdown
{% videoEmbed src="https://example.com/watch/123" thumbnail="/images/demo-thumb.jpg" title="Demo video" /%}

thumbnail is ignored for a recognized provider — YouTube, Vimeo, and Loom already show their own real thumbnail the moment the embed loads.

Video embed attributes

AttributeDescriptionValuesRequired
srcThe video's public page URLURLRequired
titleA caption shown below the embedAny textOptional
altOverrides the accessible label. Otherwise the provider name, or title, is usedAny textOptional
thumbnailUsed only on the fallback link-out card, for an unrecognized host srcImage pathOptional
aspectRatioOverrides the default 16:9 boxCSS ratio, e.g. "4 / 3", "9 / 16"Optional

Next step