From fdd76c8734ae737168c823ee8c767a5534a3a3aa Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Mon, 4 Mar 2024 14:41:35 +0530 Subject: [PATCH] Post a PLI check request on connected. (#2542) Otherwise, it gets delayed by timer and could wait upto to interval (which could be 200 ms when there is no RTT information yet). --- pkg/sfu/downtrack.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/sfu/downtrack.go b/pkg/sfu/downtrack.go index 0eed08677..424e80356 100644 --- a/pkg/sfu/downtrack.go +++ b/pkg/sfu/downtrack.go @@ -1858,6 +1858,9 @@ func (d *DownTrack) onBindAndConnectedChange() { if d.activePaddingOnMuteUpTrack.Load() { go d.sendPaddingOnMute() } + + // kick off PLI request if allocation is pending + d.postKeyFrameRequestEvent() } }