fix(k1): keep live viewer on stream edge

This commit is contained in:
DCCONSTRUCTIONS
2026-08-14 18:20:25 +03:00
parent 3235ba7b1c
commit cd8a1045c4
2 changed files with 15 additions and 1 deletions
@@ -551,6 +551,12 @@ export function rerunViewerInitialSource(
return resolvedSourceUrl;
}
export function rerunViewerOpenOptions(
followLive: boolean,
): { follow_if_http: true } | null {
return followLive ? { follow_if_http: true } : null;
}
export function resolveRecordedBlueprintUrl(sourceUrl: string, origin: string): string | null {
const normalized = sourceUrl.trim();
if (!RECORDED_RRD_PATH.test(normalized)) return null;
@@ -1631,7 +1637,7 @@ export function RerunViewport({
rerunViewerInitialSource(resolvedSource),
host,
viewerOptions,
null,
rerunViewerOpenOptions(followLive),
);
if (disposed) {
disposeViewer();