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

@@ -414,14 +414,6 @@ func TestServerHighLevelPublishRead(t *testing.T) {
stream.WritePacketRTP(ctx.TrackID, ctx.Packet)
}
},
onPacketRTCP: func(ctx *ServerHandlerOnPacketRTCPCtx) {
mutex.Lock()
defer mutex.Unlock()
if ctx.Session == publisher {
stream.WritePacketRTCP(ctx.TrackID, ctx.Packet)
}
},
},
RTSPAddress: "localhost:8554",
}