rtmp: fix timeout when publishing with GLive T80 (#4002) (#4583)

This commit is contained in:
Alessandro Ros 2025-06-03 18:26:00 +02:00 committed by GitHub
parent 3c703052f6
commit 500d18b6c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 287 additions and 79 deletions

View file

@ -18,6 +18,8 @@ import (
"github.com/bluenviron/mediamtx/internal/stream"
)
var timeNow = time.Now
// Source is a RTMP static source.
type Source struct {
ReadTimeout conf.Duration
@ -86,7 +88,8 @@ func (s *Source) runReader(ctx context.Context, u *url.URL, fingerprint string)
}
r := &rtmp.Reader{
Conn: conn,
Conn: conn,
TimeNow: timeNow,
}
err = r.Initialize()
if err != nil {