support publishing with WebRTC (#1659) (#1786)

This commit is contained in:
Alessandro Ros
2023-05-14 14:18:03 +02:00
committed by GitHub
parent 6ea299fc56
commit 1688e5d2e5
39 changed files with 1928 additions and 951 deletions

View File

@@ -61,3 +61,10 @@ func (t *formatProcessorGeneric) Process(unit Unit, hasNonRTSPReaders bool) erro
return nil
}
func (t *formatProcessorGeneric) UnitForRTPPacket(pkt *rtp.Packet, ntp time.Time) Unit {
return &UnitGeneric{
RTPPackets: []*rtp.Packet{pkt},
NTP: ntp,
}
}