mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fb5e6cbf95
commit
a82d9d85c9
@@ -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=<m3u8 url>` (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')!;
|
||||
|
||||
Reference in New Issue
Block a user