Request key frame on subscription change. (#3349)

To assist the path where the requested layer is higher than current seen
maximum and there is no congestion.
This commit is contained in:
Raja Subramanian
2025-01-20 18:45:05 +05:30
committed by GitHub
parent 35bb36e5fb
commit bea907b3a0
+1
View File
@@ -1244,6 +1244,7 @@ func (d *DownTrack) SetMaxSpatialLayer(spatialLayer int32) {
}
d.postMaxLayerNotifierEvent("max-subscribed")
d.postKeyFrameRequestEvent()
if sal := d.getStreamAllocatorListener(); sal != nil {
sal.OnSubscribedLayerChanged(d, maxLayer)