mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-06 08:06:58 +08:00
@@ -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 {
|
||||
|
Reference in New Issue
Block a user