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

@@ -863,8 +863,7 @@ func (ss *ServerSession) handleRequest(sc *ServerConn, req *base.Request) (*base
// readers can send RTCP packets only
sc.s.udpRTCPListener.addClient(ss.author.ip(), track.udpRTCPPort, ss, trackID, false)
// open the firewall by sending packets to the counterpart
ss.WritePacketRTCP(trackID, &rtcp.ReceiverReport{})
// firewall opening is performed by RTCP sender reports generated by ServerStream
}
case TransportUDPMulticast: