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')!;