mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
fix timeout with some cameras by decreasing interval between keepalives (#265)
(https://github.com/aler9/mediamtx/issues/1403)
This commit is contained in:
@@ -361,7 +361,8 @@ func (c *Client) Start(scheme string, host string) error {
|
||||
c.senderReportPeriod = 10 * time.Second
|
||||
}
|
||||
if c.udpReceiverReportPeriod == 0 {
|
||||
c.udpReceiverReportPeriod = 10 * time.Second
|
||||
// some cameras require a maximum of 5secs between keepalives
|
||||
c.udpReceiverReportPeriod = 5 * time.Second
|
||||
}
|
||||
if c.checkStreamPeriod == 0 {
|
||||
c.checkStreamPeriod = 1 * time.Second
|
||||
|
Reference in New Issue
Block a user