server: generate RTCP sender reports automatically; remote RTCP routing from examples

This commit is contained in:
aler9
2022-03-24 15:27:19 +01:00
parent 7f6383aa3c
commit 7d9c882cc9
8 changed files with 169 additions and 51 deletions

View File

@@ -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
}