Skip to content

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

Mark viewer as active when fetching playlist. Closes #1343

Gabe Kangasa36e656d9ed6
diff --git a/controllers/index.go b/controllers/index.go
index 81e508a270..a8df377b67 100644
--- a/controllers/index.go
+++ b/controllers/index.go
@@ -59,6 +59,10 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
if path.Ext(r.URL.Path) == ".m3u8" {
middleware.DisableCache(w)
+
+ // Use this as an opportunity to mark this viewer as active.
+ id := utils.GenerateClientIDFromRequest(r)
+ core.SetViewerIdActive(id)
}
// Set a cache control max-age header