Cleaning up availableLayers and exemptedLayers (#1407)

* WIP commit

* Send stream state paused only when it is paused due to bandwidth limitation.

When stream is resumed after a stream is paused, an active update is
sent. Note that this means if there are intervening events like
mute/unmute between pause and resume, resume will be sent.

* WIP commit

* fix compile

* WIP commit

* fixing tests

* clean up exempted layers

* clean up unused stuff

* correct comment

* Don't need ops queue as order is not important now

* static check

* kick off allocation when callbacks are set up, calling from receiver means callbacks may not be set up
This commit is contained in:
Raja Subramanian
2023-02-17 13:53:11 +05:30
committed by GitHub
parent 9f94fc8347
commit 85a23bfffc
7 changed files with 371 additions and 583 deletions
+9
View File
@@ -217,6 +217,15 @@ func (s *StreamTracker) BitrateTemporalCumulative() []int64 {
}
}
// clear higher layers
for i := 0; i < len(brs); i++ {
if brs[i] == 0 {
for j := i + 1; j < len(brs); j++ {
brs[j] = 0
}
}
}
return brs
}