mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
parent
c055c13442
commit
c21c969a8c
10 changed files with 79 additions and 287 deletions
|
|
@ -18,8 +18,6 @@ import (
|
|||
"github.com/bluenviron/mediamtx/internal/stream"
|
||||
)
|
||||
|
||||
var timeNow = time.Now
|
||||
|
||||
// Source is a RTMP static source.
|
||||
type Source struct {
|
||||
ReadTimeout conf.Duration
|
||||
|
|
@ -88,8 +86,7 @@ func (s *Source) runReader(ctx context.Context, u *url.URL, fingerprint string)
|
|||
}
|
||||
|
||||
r := &rtmp.Reader{
|
||||
Conn: conn,
|
||||
TimeNow: timeNow,
|
||||
Conn: conn,
|
||||
}
|
||||
err = r.Initialize()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue