Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(metrics): measure fast playback clients
Gabe Kangasbf5c5e533653
diff --git a/webserver/handlers/hlsMetrics.go b/webserver/handlers/hlsMetrics.goindex 5142be99b6..f0d27a55b7 100644--- a/webserver/handlers/hlsMetrics.go+++ b/webserver/handlers/hlsMetrics.go@@ -225,13 +225,6 @@ func segmentSpeedSample(bytes int64, duration time.Duration, segmentSeconds int)return kbps, seconds, true}-// Serve-rate readings above this aren't measurements of any real viewer-// connection: they mean a local relay (reverse proxy, CDN edge, tunnel-// agent) drained the socket instead of the viewer, which reads as-// multi-gigabit "speed". No honest viewer health signal lives above this-// ceiling — stream bitrates top out orders of magnitude below it.-const maxPlausibleViewerKbps = 50000-const serverMeasurementStatusUnmeasurable = "unmeasurable"// registerServedSegmentMetrics records a server-observed sample for a@@ -256,17 +249,6 @@ func (h *Handlers) registerServedSegmentMetrics(r *http.Request, clientID, viewe)return}- // A reading above the plausibility ceiling means a local relay drained- // the socket, not the viewer — neither the speed nor the duration- // measured anything about the viewer, so explain the missing sample.- if kbps > maxPlausibleViewerKbps {- h.metrics.RegisterUnmeasurableServerSample(- clientID,- viewerID,- serverMeasurementStatusUnmeasurable,- )- return- }report := metrics.PlaybackReport{ClientID: clientID,