Insert dynamic ad breaks into an HLS stream using Apple HLS Interstitials

domain: developer.apple.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add an EXT-X-DATERANGE tag to the primary playlist with CLASS set to com.apple.hls.interstitial.
  2. Set the START-DATE attribute to the point in the primary content where the interstitial should play.
  3. Reference interstitial content with X-ASSET-URI for a single asset, or X-ASSET-LIST pointing to a JSON document listing multiple assets with URI and DURATION.
  4. Use supported X- attributes to control resume behavior and seek-snap points around the interstitial.
  5. Test playback in a client with HLS Interstitials support (e.g., a recent AVPlayer-based app) to confirm the interstitial is fetched and inserted at the scheduled time.

Known gotchas

Related routes

Insert SCTE-35 splice_insert cue markers into a live HLS stream for ad break signaling
www.scte.org · 6 steps · unrated
Insert SCTE-35 ad cue markers into a live HLS stream and personalize ads with AWS MediaTailor
aws-mediatailor · 5 steps · unrated
Configure LL-HLS (Low-Latency HLS) partial segments and blocking playlist reload
developer.apple.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans