Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Have both connect and disconnect time in the status API
Gabe Kangasb19217626ace
diff --git a/core/status.go b/core/status.goindex 93e553f568..9d0521e763 100644--- a/core/status.go+++ b/core/status.go@@ -19,6 +19,8 @@ func GetStatus() models.Status {ViewerCount: len(_stats.Clients),OverallMaxViewerCount: _stats.OverallMaxViewerCount,SessionMaxViewerCount: _stats.SessionMaxViewerCount,+ LastDisconnectTime: _stats.LastDisconnectTime,+ LastConnectTime: _stats.LastConnectTime,}}diff --git a/models/status.go b/models/status.goindex 15a720a4a3..f81d747fe3 100644--- a/models/status.go+++ b/models/status.go@@ -1,9 +1,16 @@package models+import (+ "time"+)+//Status represents the status of the systemtype Status struct {Online bool `json:"online"`ViewerCount int `json:"viewerCount"`OverallMaxViewerCount int `json:"overallMaxViewerCount"`SessionMaxViewerCount int `json:"sessionMaxViewerCount"`++ LastConnectTime time.Time `json:"lastConnectTime"`+ LastDisconnectTime time.Time `json:"lastDisconnectTime"`}