mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 15:12:43 +00:00
Add upstream FlexFEC recovery support
This commit is contained in:
1 parent
a1be640b12
commit
6a879f4f48
16 files changed
+1882
-3
No files matched your search
@@ -168,6 +168,7 @@ type BufferBase struct {
|
||||
rtpParameters webrtc.RTPParameters
|
||||
payloadType uint8
|
||||
rtxPayloadType uint8
|
||||
fecPayloadType uint8
|
||||
|
||||
snRangeMap *utils.RangeMap[uint64, uint64]
|
||||
|
||||
@@ -313,6 +314,14 @@ func (b *BufferBase) BindLocked(rtpParameters webrtc.RTPParameters, codec webrtc
|
||||
}
|
||||
}
|
||||
|
||||
// find FlexFEC payload type, the repair stream is codec agnostic (no apt)
|
||||
for _, codec := range rtpParameters.Codecs {
|
||||
if strings.EqualFold(codec.MimeType, webrtc.MimeTypeFlexFEC03) {
|
||||
b.fecPayloadType = uint8(codec.PayloadType)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
for _, ext := range rtpParameters.HeaderExtensions {
|
||||
switch ext.URI {
|
||||
case dd.ExtensionURI:
|
||||
|
||||
Reference in new issue
Block a user