server: decode and encode RTP/RTCP packets

This commit is contained in:
aler9
2021-12-21 23:26:58 +01:00
committed by Alessandro Ros
parent b7df36d4ad
commit 3a2f9adbd5
12 changed files with 197 additions and 129 deletions

View File

@@ -410,7 +410,7 @@ func TestServerHighLevelPublishRead(t *testing.T) {
defer mutex.Unlock()
if ctx.Session == publisher {
stream.WritePacketRTP(ctx.TrackID, ctx.Payload)
stream.WritePacketRTP(ctx.TrackID, ctx.Packet)
}
},
onPacketRTCP: func(ctx *ServerHandlerOnPacketRTCPCtx) {
@@ -418,7 +418,7 @@ func TestServerHighLevelPublishRead(t *testing.T) {
defer mutex.Unlock()
if ctx.Session == publisher {
stream.WritePacketRTCP(ctx.TrackID, ctx.Payload)
stream.WritePacketRTCP(ctx.TrackID, ctx.Packet)
}
},
},