GlossaryVideo embed

Video embed

A video embed is a short piece of code that drops a hosted player into a web page, app or document, so people can watch right where they are. Most embeds use an iframe or a JavaScript player tag. The video file stays on the hosting service, which handles streaming, while the page just displays the player.

Why it matters

Embedding lets a video appear wherever customers already are: product pages, help centers, blogs and partner sites. A poor embed can slow page loads, hurt SEO and leak private videos onto other sites, so how a business embeds video affects both conversion and content control.

How it works

  1. The video host provides an embed code, usually an iframe or a player script with a video ID.
  2. The site owner pastes the code into a page, often with size, autoplay or start-time options.
  3. When the page loads, the browser fetches the player and stream from the host.
  4. Settings such as allowed domains or signed links control where the video may play.

How do I embed a video without slowing down my page?

Load the player only when it is needed. Use lazy loading on iframes, show a lightweight thumbnail that swaps in the player when clicked, and avoid autoplaying large files above the fold. Serving streams through a CDN and setting fixed dimensions also prevents layout shifts that hurt page speed scores.

How do I stop people from embedding my videos on other sites?

Use access controls on the video itself, not just the page. Common options are signed playback URLs that expire, allowed domain lists set in the player or host, and DRM for premium content. Hiding the embed code alone does not work, since anyone can copy it from the page source. With FastPix, an embed can require a token that your site issues and that expires, so the same code pasted onto another site stops playing.

Where it's used

SaaS products, ecommerce brands and online learning platforms embed videos in help centers, product pages and course pages so customers can watch without leaving the site.

Where it usually goes wrong, and how FastPix handles it

A copied embed code or stream link lets anyone play a private or paid video on another site, and simple public links never expire.

Marketing clips can stay on public FastPix playback IDs while paid or internal videos use token-signed ones, so access stays with the people you approved, not whoever copied the embed code.