allow to set NTP of outgoing packets in both client and server (#148)

This commit is contained in:
Alessandro Ros
2022-11-14 16:55:40 +01:00
committed by GitHub
parent ae0df8d4c9
commit 7951b2e4af
19 changed files with 95 additions and 69 deletions

View File

@@ -280,10 +280,9 @@ func (sc *ServerConn) readFuncTCP(readRequest chan readReq) error {
if h, ok := sc.s.Handler.(ServerHandlerOnPacketRTP); ok {
h.OnPacketRTP(&ServerHandlerOnPacketRTPCtx{
Session: sc.session,
TrackID: track.id,
Packet: pkt,
PTSEqualsDTS: ptsEqualsDTS(track.track, pkt),
Session: sc.session,
TrackID: track.id,
Packet: pkt,
})
}
} else {