server: parse incoming RTP/H264 packets; fix RTCP receiver jitter

This commit is contained in:
aler9
2022-03-26 16:52:46 +01:00
committed by Alessandro Ros
parent 718b084f83
commit 0463e6b510
9 changed files with 182 additions and 106 deletions

View File

@@ -1,6 +1,8 @@
package gortsplib
import (
"time"
"github.com/pion/rtcp"
"github.com/pion/rtp"
@@ -184,9 +186,12 @@ type ServerHandlerOnSetParameter interface {
// ServerHandlerOnPacketRTPCtx is the context of a RTP packet.
type ServerHandlerOnPacketRTPCtx struct {
Session *ServerSession
TrackID int
Packet *rtp.Packet
Session *ServerSession
TrackID int
Packet *rtp.Packet
PTSEqualsDTS bool
H264NALUs [][]byte
H264PTS time.Duration
}
// ServerHandlerOnPacketRTP can be implemented by a ServerHandler.