Push track quality to poor on a bandwidth constrained pause. (#1867)

* Push track quality to poor on a bandwidth constrained pause.

* add tests

* scale distance by divisor

* fix test distance to desired

* wait longer for subscription manager to reconcile
This commit is contained in:
Raja Subramanian
2023-07-11 15:29:35 +05:30
committed by GitHub
parent 9abc580e8b
commit 5459bd2931
7 changed files with 118 additions and 40 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ func TestSubscribeToCodecUnsupported(t *testing.T) {
require.Equal(t, h264TrackID, sr.TrackSid)
require.Equal(t, livekit.SubscriptionError_SE_CODEC_UNSUPPORTED, sr.Err)
return true
}, time.Second, 10*time.Millisecond, "did not receive subscription response")
}, 5*time.Second, 10*time.Millisecond, "did not receive subscription response")
// publish another vp8 track again, ensure the transport recovered by sfu and c2 can receive it
t4, err := c1.AddStaticTrack("video/vp8", "video2", "webcam2")