What is a Midroll?

A midroll is an advertisement or inserted segment presented during the primary audio or video program. Its placement distinguishes it from preroll content before the program and postroll content after it.

How Midrolls work

A midroll creates a scheduled interruption point inside continuous programming where advertising or another inserted item may play. The break can be assembled by the application, stitched into the stream upstream, or signaled for a downstream distributor to replace. Cue timing must align content, manifests, tracking, and playback state. Publishing systems place these opportunities after editorial timing and before final stream delivery or ad decisioning.

Key facts

  1. Client-side insertion switches the player to separately requested media, while server-side insertion can present ads and program content through one stream. Their tracking and failure behavior differ.
  2. Markers such as SCTE-35 messages or manifest date-range metadata can communicate break opportunities, but the player or distribution service decides how to interpret them.
  3. Seeking across a break, ad-decision timeouts, and mismatched segment boundaries are distinct edge cases. Each needs an explicit policy to avoid repeated ads or timeline jumps.

When Midrolls matter

Schedule midroll opportunities at natural breaks to limit disruption while meeting advertising requirements. Poor timing or failed ad transitions can interrupt playback, lose viewer context, and distort measurement.

Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

Try Transloadit for free