server: add parameter 'containsKeyFrame' to WritePacketRTP; fix RTCP sender reports and RTP-Info

This commit is contained in:
aler9
2022-04-07 18:41:48 +02:00
committed by Alessandro Ros
parent 0463e6b510
commit d0cab3c8bd
8 changed files with 47 additions and 29 deletions

View File

@@ -131,7 +131,7 @@ func (sh *serverHandler) OnPacketRTP(ctx *gortsplib.ServerHandlerOnPacketRTPCtx)
// if we are the publisher, route the RTP packet to readers
if ctx.Session == sh.publisher {
sh.stream.WritePacketRTP(ctx.TrackID, ctx.Packet)
sh.stream.WritePacketRTP(ctx.TrackID, ctx.Packet, ctx.PTSEqualsDTS)
}
}