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.postMaxLayerNotifierEvent("max-subscribed")
|
||||||
|
d.postKeyFrameRequestEvent()
|
||||||
|
|
||||||
if sal := d.getStreamAllocatorListener(); sal != nil {
|
if sal := d.getStreamAllocatorListener(); sal != nil {
|
||||||
sal.OnSubscribedLayerChanged(d, maxLayer)
|
sal.OnSubscribedLayerChanged(d, maxLayer)
|
||||||
|
|||||||
Reference in New Issue
Block a user