№ 14 Field manual

Video on your site: a clip, an embed, or a stream

Operations · Updated 25 November 2026 · 6 min read

The short version
  1. 01One short clip can weigh as much as many pages put together. It is the one file that can use up a transfer allowance.
  2. 02Three shapes exist: a file on your site, an embedded outside player, and a stream. A file fits a short clip.
  3. 03A few tag settings keep the page light: no preload, a poster image, set dimensions, and captions.
  4. 04Adding a clip is a briefed change. You send the file, an agent opens the pull request, and a person merges it.

A video is the heaviest file

Most pages here weigh a few kilobytes. A video is a different size. Take one example: a clip of 60 seconds, encoded at 2.5 megabits a second. It is about 18.8 MB.

The median page on this site weighs 18.0 KB. So the example clip weighs as much as about 1,016 pages. The clip is our own example, not a measurement of yours. Your encoder and your footage change the number.

Three ways to show a video

The three shapes differ in where the file lives and what the visitor loads:

ShapeWhere it livesWhat the visitor loadsWhat it costsWorks on a static site?When it fits
A file on your siteOn your hosting, next to your pages.The file itself, when the visitor plays it.Its bytes count against your transfer allowance on every play.Yes.A short clip. A product demo. A background loop.
An embedded outside playerAt the outside service.The player and its scripts, from a server we do not run.Little transfer here. The service sets its own terms. A widget, a tracking pixel, or an embed is a request to a server we do not run. No page-weight budget of ours can cap what it costs a visitor.Yes.A long video, or a large library.
A streamCut into several sizes by a pipeline.The size that fits the visitor’s connection.A pipeline to build and run. See the limits below.No. The pipeline that cuts it needs a server.Many viewers, long videos, or live events.

A file needs no edge rule. A path with a dot in it, such as /media/intro.mp4, is served as written. The deploy sends each file with a type read from its extension.

Video is already compressed. The edge cannot shrink it further, so compression does not help here. Make the file small before you send it. For the outside player, see outside services.

What it does to your allowance

Each plan posts a fair-use transfer allowance. Every play of a file sends its bytes to the visitor. This table divides each allowance by the example clip:

PlanAllowanceFull plays of the example clip
Static Starter~100 GB transfer/moAbout 5,726 a month
Static Pro~500 GB transfer/moAbout 28,633 a month

A visitor who stops halfway sends fewer bytes. Treat the count as a ceiling for one clip, not a forecast. The same allowance also pays for every page. See billing for the allowance rules, and under load for what a crowd does.

The tag that keeps a page light

Four settings do most of the work:

<video
  controls
  preload="none"
  poster="/media/intro.jpg"
  width="1280"
  height="720"
>
  <source src="/media/intro.mp4" type="video/mp4" />
  <track
    kind="captions"
    src="/media/intro.en.vtt"
    srclang="en"
    label="English"
    default
  />
</video>
  • No preload. preload="none" tells the browser to fetch nothing until the visitor presses play. metadata fetches only the length and size.
  • A poster image. The still shows in place of the video. It must stay inside the 90 KB ceiling for any picture. See images.
  • A set size. width and height reserve the space, so the page does not jump when the player appears.
  • Captions. A track element adds captions for people who cannot hear the sound, or who watch with it off. See accessibility.

Audio follows the same rules. Use preload="none", add a text transcript beside the player, and keep the file small. A podcast episode is the same kind of file as a video clip, only lighter.

This site ships none

This site shows no video and plays no audio. Every figure below comes from the build.

  • 0 media files. No video file and no audio file ships in the site.
  • No player. The site loads 1 third-party host. It is the analytics tag. A player host would fail check:perf.

check:media checks the built site. It counts the media files. It also fails if a media tag is ever added without a poster, a set size, captions, and a safe preload value.

What it does not do

  • No transcoding or adaptive streaming. A video is served as the file you send. It is not re-encoded, and it is not cut into several sizes for each visitor’s connection. A pipeline that does this is a custom quote.
  • No live streaming. We host recorded files. We do not take in a live camera feed or send it to many viewers at once.
  • No per-request compute beyond resolving the address. The check that matches a URL to a rule runs at the edge. It doesn't run your code. Anything that computes an answer per request needs an instance behind it.

A bigger video job is a different project. Custom stacks covers a pipeline that cuts, stores and serves video.

Asking for it

A clip on a page is a briefed change, not a switch. CodeHerder carries it. This is how one change ships:

  1. You send the clip and say where it goes. Attach the file. Say which page shows it, and what the caption text says. If the clip is long, say so.
  2. The agent prepares the page. The agent compresses the clip, writes the poster and the captions slot, and sets the tag. It checks the poster against the picture budget.
  3. Briefed as a change. Written up the same way any other change request is. The iteration add-on is what covers it.
  4. An agent opens the pull request. The change lands as a real pull request against the repository, with the test suite run against it.
  5. A human reviews and merges. Someone reads the diff before it goes anywhere near production — nothing here is auto-applied blind.
  6. It ships through the same pipeline. The same pipeline that deploys everything else on your stack ships this too — no separate process to babysit.
  7. You're told it's done. A note confirming what changed and that it merged, in the same shape as every other note on this site.

CodeHerder is $25/mo on any plan. A short clip fits the Static Starter plan at $5/mo. Quote this shape. The form opens with this plan and add-on filled in.

A stream or a large library needs more. CustomLabs builds that.

Ready to start?

Tell us what you're running — one fixed monthly rate, within a business day.

Get a quote →