mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 13:12:09 +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:
1 parent
35bb36e5fb
commit
bea907b3a0
1 file changed
+1
@@ -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