Videos and iframes - Documentation.AI

Videos and iframes

Reference for uploading and embedding videos and iframes using the editor UI and the Video / Iframe components.

Overview

Use videos and iframes to embed rich, interactive content directly in your docs, such as:

In Documentation.AI you can:

For static images, see Images. For downloadable files and audio, see Files. For showing embed code examples (such as iframe snippets) as code instead of rendering them, use Code and Groups.

Uploaded videos are hosted by Documentation.AI and served from a CDN. The per-file limit depends on your plan: 20 MB on Starter, 30 MB on Standard, and 50 MB on Professional and Enterprise. For longer or larger videos, host them on a video platform and embed the link.

Using with Web Editor

Insert an uploaded video

  1. Place your cursor on a new line in the Web Editor.
  2. Type / and select Video.
  3. In the Select video dialog, either:
    • Click the Upload tile, choose a video file, confirm or edit its name, and click Upload, or
    • Search and select a video that is already in your media library.
  4. Click Insert video.

The video appears in your document as a native player with a poster frame captured from the first frame at upload. Uploaded videos also count toward your organization's storage quota.

You can also insert videos from the Media tab in the editor's secondary navbar: hover a video tile and click Insert into page, or drag the tile onto the page. Dropping a video file directly onto the page uploads and inserts it in one step.

Insert a video link or embed code

  1. Type / and select Video.
  2. In the Select video dialog, click URL or embed code.
  3. In the Video URL or Embed Code dialog, paste either:
    • A video URL (YouTube, Vimeo, Loom, a direct MP4 URL, and so on), or
    • An iframe embed code copied from another tool.
  4. Click Insert Video. The video or iframe appears in your document.

You can use the same block for both direct video URLs and iframe-based embeds from other platforms.

Prefer writing in code?

You can switch to MDX view inside the Web Editor to write or edit this component using the same syntax as the Code Editor. This is useful if you want full control while staying in the Web Editor.

Align and resize

Hover over the embedded video or iframe to reveal controls:

Use these controls to keep layouts consistent with nearby content and images.

Replace an uploaded video

To swap the content of an uploaded video without editing any page, open it in the media library and click Replace file. The URL stays the same, a fresh poster frame is captured, and every page using the video shows the new version.

Using with Code Editor

In the Code Editor, you work directly in MDX using the <Video> and <Iframe> components.

<Video> component (iframe mode)

Use iframe mode for platforms that provide an embed URL, such as YouTube, Vimeo, Loom, or Wistia. This is the default mode when render-type is not set.

<Video
  src="https://www.youtube.com/embed/Reu01KxMSF0"
  title="Feature overview video"
  width="672"
  height="378"
  allow-full-screen="true"
  style="width: 100%; max-width: 672px; height: auto;"
/>

Key props:

<Video> component (video mode)

Use video mode for video files, including videos uploaded to the media library. Set render-type="video" so the file plays in a native HTML5 player instead of being embedded as an iframe. This is what the Web Editor writes when you insert an uploaded video.

<Video
  src="https://video-cdn.documentation.ai/org-.../doc-.../1757300000000-abc123-feature-walkthrough.mp4"
  poster="https://blob-cdn.documentation.ai/org-.../doc-.../1757300000000-abc123-feature-walkthrough-poster.jpg"
  render-type="video"
  width="672"
  height="378"
  controls="true"
  style="width: 100%; max-width: 672px; height: auto;"
/>

Additional props for video mode:

Preloading is handled automatically: with a poster, the browser loads nothing until the reader presses play; without one, it loads the video's metadata so the player shows a first frame instead of a black box.

Boolean-like props must be the string "true" to enable. Values such as "1" or "yes" are treated as false. Bare JSX booleans like muted also work.

<Iframe> component

Use <Iframe> for non-video embeds such as forms, dashboards, and interactive tools.

<Iframe
  src="https://docs.google.com/forms/d/e/1FAIpQLSexample/viewform"
  title="Customer feedback form"
  width="100%"
  height="600"
  sandbox="allow-scripts allow-same-origin allow-presentation"
  allow-full-screen="true"
  style="border: 1px solid #e5e7eb; border-radius: 8px;"
/>

Key props:

Advanced options

Platform support

Commonly used video sources:

Most platforms provide both a shareable URL and an iframe embed code; use whichever best matches your workflow (Web Editor block or MDX component).

Accessibility and layout best practices

Security considerations for iframes