From cc8c00da14265c3b8f67c546ca71e663a092f0cf Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Fri, 13 Nov 2026 00:31:32 +0100 Subject: [PATCH] docs: record live relay source-change limitation (#353) --- docs/specs.md | 3 +++ docs/ui-pages.md | 4 +++- skills/webrtc-live/SKILL.md | 14 +++++++++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/specs.md b/docs/specs.md index de439fb..52dcb6d 100644 --- a/docs/specs.md +++ b/docs/specs.md @@ -144,6 +144,9 @@ l’installation. La négociation synthétique dispose d’une preuve séparée, cela ne valide ni une caméra physique, ni l’accès depuis un réseau externe, ni une latence cible en déploiement; voir #161 et #341. +Un changement d’URL source pour le même CameraId peut conserver l’ancien relay +jusqu’au renouvellement; cette limite Agent est suivie dans #355. + ## Temps réel (SignalR) — `docs/signalr-usage.md` Résumé des cinq hubs actuellement mappés : diff --git a/docs/ui-pages.md b/docs/ui-pages.md index ef75154..772dd48 100644 --- a/docs/ui-pages.md +++ b/docs/ui-pages.md @@ -325,7 +325,9 @@ parcours logiciel seulement; elle ne prouve pas l’accès d’une caméra physi le TURN depuis Internet ni un budget de latence en exploitation (voir #161 et #341). La maquette ci-dessus représente le lecteur livré; le choix de qualité, l’enregistrement depuis le lecteur et une timeline de lecture ne sont pas des -contrôles présents dans ce panneau. +contrôles présents dans ce panneau. Changer l’URL RTSP d’une caméra tout en +gardant le même ID et la même assignation peut laisser l’ancien relay actif +jusqu’au renouvellement de sa session; cette limite Agent est suivie dans #355. ### Détail Caméra — P4b diff --git a/skills/webrtc-live/SKILL.md b/skills/webrtc-live/SKILL.md index 33b9807..2d78318 100644 --- a/skills/webrtc-live/SKILL.md +++ b/skills/webrtc-live/SKILL.md @@ -9,7 +9,9 @@ and external network behavior is measured. - Keep camera assignment and stream lifecycle in Agent. Only an enabled camera present in the current Central assignment snapshot may be published. Stop the - publisher when assignment, enablement, configuration, or Agent lifetime ends. + publisher when assignment, enablement, or Agent lifetime ends. A source URL + change for the same camera must also stop the old publisher and start one from + the new configuration before synchronization is considered complete. - Use MediaMTX as the WebRTC/WHEP media server. Agent publishes the camera's browser-compatible H.264 stream to a camera-ID path. The relay passes video through and optionally maps the first audio track, transcoding it to Opus for @@ -30,6 +32,16 @@ and external network behavior is measured. FFmpeg process count, and session lifetime. Ensure cancellation/config changes reap child processes and release permits. +## Current configuration-change limitation + +`LiveCameraRelayService` currently tracks a running relay by CameraId and its +renewal time; it does not compare the source URL used to start FFmpeg with a new +configuration for the same camera. Such a source change may keep publishing the +old input until the renewal boundary (about 7.5 minutes with the current ticket +lifetime). This is a known Agent defect tracked in Gitea issue #355, not the +expected architecture. Do not claim immediate source-change handling until that +issue's acceptance evidence is complete. + ## Implementation references Use MediaMTX's maintained documentation as the protocol reference: