Resolve RTX pair via OnTrack also. (#4190)

* Resolve RTX pair via OnTrack also.

In simulcast probing path, the interceptor chain is not invoked
for primary stream. Not sure if this is a recent change. Due to this,
the RTX pair does not get resolved.

Use the onTrack callback to resolve the pair.

* remove debug
This commit is contained in:
Raja Subramanian
2025-12-24 15:27:13 +05:30
committed by GitHub
parent 381bce03ae
commit 8b0efb8c89
5 changed files with 64 additions and 22 deletions
+8
View File
@@ -1023,3 +1023,11 @@ func (t *TransportManager) SetSubscriberChannelCapacity(channelCapacity int64) {
func (t *TransportManager) hasRecentSignalLocked() bool {
return time.Since(t.lastSignalAt) < PingTimeoutSeconds*time.Second
}
func (t *TransportManager) RTPStreamPublished(ssrc uint32, mid, rid string) {
if t.params.UseOneShotSignallingMode || t.params.UseSinglePeerConnection {
t.publisher.RTPStreamPublished(ssrc, mid, rid)
} else {
t.subscriber.RTPStreamPublished(ssrc, mid, rid)
}
}