From a82d9d85c9788cd05bd5b55cc9556e56afce8e1e Mon Sep 17 00:00:00 2001 From: Christian Pillsbury Date: Mon, 15 Jun 2026 14:29:07 -0700 Subject: [PATCH] chore(sandbox): accept ?src= in the live-hls harness Live test streams are ephemeral; let the harness target any m3u8 via a query param (default kept) so it can be pointed at a fresh stream without editing code. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/sandbox/templates/live-hls-engine/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sandbox/templates/live-hls-engine/main.ts b/apps/sandbox/templates/live-hls-engine/main.ts index 7c9f4fd1..5d1cd4de 100644 --- a/apps/sandbox/templates/live-hls-engine/main.ts +++ b/apps/sandbox/templates/live-hls-engine/main.ts @@ -5,7 +5,10 @@ */ import { createLiveHlsEngine, type LiveHlsEngineSignals } from '@videojs/spf/live-hls'; -const SRC = 'https://stream.mux.com/1DRguGQyA2K2TIelbV7rU7uePlZXHyYWR1LEMC8iTC4.m3u8'; +// Override per run with `?src=` (live test streams are ephemeral). +const SRC = + new URLSearchParams(location.search).get('src') ?? + 'https://stream.mux.com/1DRguGQyA2K2TIelbV7rU7uePlZXHyYWR1LEMC8iTC4.m3u8'; const video = document.getElementById('video') as HTMLVideoElement; const logEl = document.getElementById('log')!;