0

Reduce the amount of time between start of stream and when we show as online. Can bump this back up if needed.

This commit is contained in:
Gabe Kangas 2020-10-08 14:27:42 -07:00
parent 168ba9277e
commit dfeba53f08

View File

@ -78,7 +78,7 @@ 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 of four segments.
timeSinceLastConnected := time.Since(_stats.LastConnectTime.Time).Seconds()
if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength()*4.0) {
if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength())*3.0 {
return false
}