What it is

Embedded players hide their streams behind layers of page machinery. Splice uses Cloudflare Browser Rendering to watch a page the way a browser does, discovers the underlying HLS/DASH/file candidates (including players nested in iframes, tagged with the iframe URL as referer), ranks them, and relays segments through a Worker so the client assembles a single file locally with mux.js. The whole app sits behind Cloudflare Access.

Its scope is deliberately narrow and stated up front in its own README: DRM-protected video is never touched, AES-128-encrypted HLS stops in v1, live streams are out of scope, and YouTube yields no candidates.

Code

src/discover.js (exact):

export function kindOf(u, ct = '') {
  const p = (() => { try { return new URL(u).pathname; } catch { return u; } })();
  if (/\.m3u8$/i.test(p) || /mpegurl/i.test(ct)) return 'hls';
  if (/\.mpd$/i.test(p) || /dash\+xml/i.test(ct)) return 'dash';
  return 'file';
}

function rank(c) { return { hls: 0, dash: 1, file: 2 }[c.kind]; }

Achievements

  • Deployed 2026-09-30 behind Cloudflare Access; unauthenticated and forged-token requests redirect to the Access login (per the project README).
  • Test counts recorded at that checkpoint: unit 11/11, end-to-end 14/14, UI 27/27 (per the README).
  • Honestly unfinished: device acceptance is recorded in the README as not yet done.

Lessons

  • A downloader’s credibility is its refusal list. Writing the boundaries first made every later decision simpler — and made the tool describable in public without asterisks.
  • Discovery is the product. Relaying bytes is commodity; reliably finding the right stream inside hostile page structure is the engineering.

Access: Invite-only, and staying that way — there is no public request path. If we know each other, write me; internal details by correspondence.

Status: Working, private, pre-acceptance · JavaScript, Cloudflare Workers, Browser Rendering, PWA, HLS/DASH