mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
server: generate RTCP sender reports automatically; remote RTCP routing from examples
This commit is contained in:
@@ -139,6 +139,7 @@ type Server struct {
|
||||
//
|
||||
|
||||
udpReceiverReportPeriod time.Duration
|
||||
udpSenderReportPeriod time.Duration
|
||||
sessionTimeout time.Duration
|
||||
checkStreamPeriod time.Duration
|
||||
|
||||
@@ -192,6 +193,9 @@ func (s *Server) Start() error {
|
||||
if s.udpReceiverReportPeriod == 0 {
|
||||
s.udpReceiverReportPeriod = 10 * time.Second
|
||||
}
|
||||
if s.udpSenderReportPeriod == 0 {
|
||||
s.udpSenderReportPeriod = 10 * time.Second
|
||||
}
|
||||
if s.sessionTimeout == 0 {
|
||||
s.sessionTimeout = 1 * 60 * time.Second
|
||||
}
|
||||
|
Reference in New Issue
Block a user