Fix simulcast RTX pairing broken by pion/webrtc#3470 (#4800)
pion no longer starts the repair stream reader when a custom BufferFactory is set, so the mid/rid/rsid extensions were never observed and simulcast RTX streams were never paired with their primary streams. Extract the extensions on the buffer write path instead. Migrated publishers send no extensions at all, so pair those from SimTracks. Adds an integration test covering both paths, and moves the vnet setup it shares with the downtrack test into pkg/testutils/vnettest. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
763ea15293
commit
bbdfd50d62
@@ -530,6 +530,8 @@ func newPeerConnection(
|
||||
params.Logger.Debugw("rtx pair found from extension", "repair", repair, "base", base, "rsid", rsid)
|
||||
params.Config.BufferFactory.SetRTXPair(repair, base, rsid)
|
||||
},
|
||||
params.Config.BufferFactory,
|
||||
params.SimTracks,
|
||||
params.Logger,
|
||||
)
|
||||
// put rtx interceptor behind unhandle simulcast interceptor so it can get the correct mid & rid
|
||||
|
||||
Reference in New Issue
Block a user