add option MaxPacketSize to Client and Server

This commit is contained in:
aler9
2023-08-12 19:34:21 +02:00
parent 68d4bf8da0
commit 7532484041
7 changed files with 28 additions and 10 deletions

View File

@@ -520,7 +520,7 @@ func TestServerRecord(t *testing.T) {
}, nil, nil
},
onRecord: func(ctx *ServerHandlerOnRecordCtx) (*base.Response, error) {
// send RTCP packets directly to the session.
// queue sending of RTCP packets.
// these are sent after the response, only if onRecord returns StatusOK.
err := ctx.Session.WritePacketRTCP(ctx.Session.AnnouncedMedias()[0], &testRTCPPacket)
require.NoError(t, err)