Use current bit rate when calculating bandwidth needed. (#1617)

This commit is contained in:
Raja Subramanian
2023-04-15 18:50:18 +05:30
committed by GitHub
parent 40ceddd18b
commit ce33d38b4f
3 changed files with 49 additions and 33 deletions
+2 -1
View File
@@ -988,7 +988,8 @@ func (d *DownTrack) IsDeficient() bool {
}
func (d *DownTrack) BandwidthRequested() int64 {
return d.forwarder.BandwidthRequested()
_, brs := d.receiver.GetLayeredBitrate()
return d.forwarder.BandwidthRequested(brs)
}
func (d *DownTrack) DistanceToDesired() float64 {