mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: generate RTCP sender reports automatically; remote RTCP routing from examples
This commit is contained in:
@@ -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",
|
||||
}
|
||||
|
Reference in New Issue
Block a user