Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add stream health tip of latency buffer level

Gabe Kangas9920e69540d2
diff --git a/metrics/healthOverview.go b/metrics/healthOverview.go
index 605e56b4f6..6a9b7b3d7f 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)
}