mirror of
https://github.com/aler9/gortsplib
synced 2025-10-29 17:51:50 +08:00
client: switch to TCP if no UDP packets have been received within a timeout (https://github.com/aler9/rtsp-simple-server/issues/173)
This commit is contained in:
@@ -45,7 +45,7 @@ func newClientConnUDPListener(c *ClientConn, port int) (*clientConnUDPListener,
|
||||
pc: pc,
|
||||
frameBuffer: multibuffer.New(uint64(c.conf.ReadBufferCount), uint64(c.conf.ReadBufferSize)),
|
||||
lastFrameTime: func() *int64 {
|
||||
v := time.Now().Unix()
|
||||
v := int64(0)
|
||||
return &v
|
||||
}(),
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user