From a29d6450cb14b9c17af3ded79a011e01475a6fd6 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 25 Apr 2022 14:09:06 -0700 Subject: [PATCH] Add stream health tip of latency buffer level --- metrics/healthOverview.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/metrics/healthOverview.go b/metrics/healthOverview.go index 605e56b4f..6a9b7b3d7 100644 --- a/metrics/healthOverview.go +++ b/metrics/healthOverview.go @@ -207,6 +207,11 @@ func errorCountHealthOverviewMessage() string { return fmt.Sprintf("%d of %d viewers (%d%%) are experiencing errors. You're currently using a video passthrough output, often known for causing playback issues for people. It is suggested you turn it off.", clientsWithErrors, totalNumberOfClients, healthyPercentage) } + currentBroadcast := core.GetCurrentBroadcast() + if currentBroadcast != nil && currentBroadcast.LatencyLevel.SecondsPerSegment < 3 { + return fmt.Sprintf("%d of %d viewers (%d%%) may be experiencing some issues. You may want to increase your latency buffer level in your video configuration to see if it helps.", clientsWithErrors, totalNumberOfClients, healthyPercentage) + } + return fmt.Sprintf("%d of %d viewers (%d%%) may be experiencing some issues.", clientsWithErrors, totalNumberOfClients, healthyPercentage) }