mirror of
https://github.com/aler9/gortsplib
synced 2025-09-28 12:02:16 +08:00
allow to set NTP of outgoing packets in both client and server (#148)
This commit is contained in:
@@ -133,7 +133,7 @@ func (sh *serverHandler) OnPacketRTP(ctx *gortsplib.ServerHandlerOnPacketRTPCtx)
|
||||
|
||||
// if we are the publisher, route the RTP packet to all readers
|
||||
if ctx.Session == sh.publisher {
|
||||
sh.stream.WritePacketRTP(ctx.TrackID, ctx.Packet, ctx.PTSEqualsDTS)
|
||||
sh.stream.WritePacketRTP(ctx.TrackID, ctx.Packet)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user