Add timeout query param to RTSP incoming source #1118

This commit is contained in:
Alex X
2024-05-24 16:26:06 +03:00
parent b3e9ed23ac
commit d9d2bdff44
2 changed files with 10 additions and 1 deletions
+5
View File
@@ -210,6 +210,11 @@ func tcpHandler(conn *rtsp.Conn) {
return
}
query := conn.URL.Query()
if s := query.Get("timeout"); s != "" {
conn.Timeout = core.Atoi(s)
}
log.Debug().Str("stream", name).Msg("[rtsp] new producer")
stream.AddProducer(conn)