Deficient state handling when a track needs a change (#261)

* WIP commit

* deficient handling

* Add missing ProvisionalAllocatePrepare

* adjust state on track removal

* Increase test timeout

* - Add comments about cooperative routines
- Take down transition if available in cooperative scheme
- Use layer comparison when taking down transition. Because of when the
  bitrate is measured, it is not always guaranteed bandwidthDelta is -ve
  when moving down.
- Do not add track to stream allocator till bind.

* make comment better

* a bit more clear comments

* Use OnBind on subscribed track
This commit is contained in:
Raja Subramanian
2021-12-16 10:58:34 +05:30
committed by GitHub
parent c08d1e9d72
commit e504b6678c
10 changed files with 509 additions and 26 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
var (
SyncDelay = 100 * time.Millisecond
ConnectTimeout = 10 * time.Second
ConnectTimeout = 30 * time.Second
)
func WithTimeout(t *testing.T, description string, f func() bool) bool {