mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
allow to set NTP of outgoing packets in both client and server (#148)
This commit is contained in:
@@ -46,7 +46,7 @@ func main() {
|
||||
|
||||
// called when a RTP packet arrives
|
||||
reader.OnPacketRTP = func(ctx *gortsplib.ClientOnPacketRTPCtx) {
|
||||
publisher.WritePacketRTP(ctx.TrackID, ctx.Packet, ctx.PTSEqualsDTS)
|
||||
publisher.WritePacketRTP(ctx.TrackID, ctx.Packet)
|
||||
}
|
||||
|
||||
// setup and read all tracks
|
||||
|
Reference in New Issue
Block a user