From 1058c644bd6a72b531d1503982fe4a8478a59330 Mon Sep 17 00:00:00 2001 From: Emiliano Frascaro Date: Thu, 4 Jun 2026 09:47:57 +0200 Subject: [PATCH] PublisherSync: go_live anche con bytesReceived su path camera Co-authored-by: Cursor --- backend/app/services/mediamtx/publisher_sync.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/services/mediamtx/publisher_sync.rb b/backend/app/services/mediamtx/publisher_sync.rb index 3a00259..931ab3a 100644 --- a/backend/app/services/mediamtx/publisher_sync.rb +++ b/backend/app/services/mediamtx/publisher_sync.rb @@ -40,6 +40,8 @@ module Mediamtx return true if info["online"] return true if info["source"].present? + # MediaMTX a volte lascia online=false con publisher attivo; i byte in ingresso confermano il segnale. + return true if info["ready"] && info["bytesReceived"].to_i > 1_000_000 false end