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