AI Log — waiting for first event…
Workspace00000000…000001
Dev mode

Embed key

One-line snippet that turns on CMCD (CTA-5004) telemetry on any HLS.js, Shaka, dash.js, or video.js player. No player code changes.

Your embed snippet

Paste this into the <head> of every page that hosts a player. It is safe to load on customer-facing pages — the script only patches player constructors and reads no DOM beyond the video element.

<script src="https://embed.mcdn.io/cmcd-enabler.js" data-mcdn-key="ws_<your-workspace-id>"></script>
Integration docs

You are not signed in to a workspace yet — the snippet above uses a placeholder key. Sign in or start a trial first.

Options

Optional attributes for non-default behaviour. Most customers leave all of these unchecked.

Default is the ?CMCD=... query string. Headers add ~80 bytes per request but never cache-bust.

Use a stable per-stream id (≤64 chars). Falls back to video[data-content-id] attribute, then to the manifest URL's parent path segment.

If your CSP forbids embed.mcdn.io, mirror the file onto your own CDN and put the URL here. Updates require a re-mirror.

How it works

On load, the script detects which player is on the page (window.Hls, window.shaka, window.dashjs, window.videojs) and monkey-patches the constructor or load method to inject CMCD settings before any segment fetches happen.

A sessionId is generated per page load via crypto.randomUUID(). Existing CMCD configuration the customer has already set is preserved — we only fill keys that were left unset.

File size: under 3 KB gzipped. Zero dependencies. Source at apps/cmcd-enabler/.