Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Approximately 3 segments should be available before playback can start
Gabe Kangas583f06084d35
diff --git a/core/stats.go b/core/stats.goindex f210461db6..9c5b6e6ead 100644--- a/core/stats.go+++ b/core/stats.go@@ -9,6 +9,7 @@ import (log "github.com/sirupsen/logrus"+ "github.com/gabek/owncast/config""github.com/gabek/owncast/models""github.com/gabek/owncast/utils")@@ -66,9 +67,9 @@ func IsStreamConnected() bool {}// Kind of a hack. It takes a handful of seconds between a RTMP connection and when HLS data is available.- // So account for that with an artificial buffer.+ // So account for that with an artificial buffer of three segments.timeSinceLastConnected := time.Since(_stats.LastConnectTime).Seconds()- if timeSinceLastConnected < 10 {+ if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength()*3.0) {return false}