mirror of
https://github.com/livekit/livekit.git
synced 2026-09-01 20:09:08 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user